X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 90331384A040 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1586955306; bh=sQqjuo1ysdKa2Zrt3Fz60PGor4QkX8g0cuqZ3zIgG7U=; h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=b6AiTIBjhv1+xjOsovwncdG6sCYFDdzZ3rluSpwZ/sJ2Q6JMVSDWMrqlH1HgQxq5q H/5+eSwcBfcGN/F2wLY3Go4G79OzPHk3RiaKtWtS2G1u92N53hg8dL/PVVEIcvSy1x 2t2cRIQD/G+qCSiY/0OkAaFrYsJqiGoje2WTl8ig= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org CB8C4385DC14 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=x4jp6bc7foay6RPupN5qgulmtn3FkmMUxIANdtJD8eQ=; b=fYhcdq3SEH95cGPH9zUje0EJX2sFPpqmOXAayeBOVoYh8R0Dm22dQjusMoSZP6nvm8 nmJrg9cpSKEdtClXF+W0dROoDpY5GCA3STIJVtLObb8G58mCVyQ5SVwIdiKyi/bLq/t+ YgPswPkWX9aKihqKXFviMtyTVxdqCWCKHW/lUvrIetRh84wet4aBxKHv72rZlmznvcAZ Oalw5N/rSOKEgfXlu8qSyG7N7g3XWL7qAQ0MuVQHCZIRnxcavZfu8X2hmwZxKKc2VwaU Tmf31Cbi4rwQ6wnDyQYiOnvgsmzquGJaJXElvQyW52IuxQDUmmuZWzcekEobINlOhc+E aNcg== X-Gm-Message-State: AGi0PubF0e3Gs7wqQePXpQwG4gVwXyiB0zmpaLEOhLwzrzT+fSqYyRg9 SoVzmJUOFYj4f4m3Zxao4WbVfjUQHkg08NJ/A6ZfrsRU X-Google-Smtp-Source: APiQypLfepiSoMPSppMhIHkjVOrdOwM+pt/X2D0DrYDS+io5A0avRO8SNTzLhlvUQSdjogiuHc3i+/ORDXq5yV7f85U= X-Received: by 2002:a5d:81cd:: with SMTP id t13mr25448150iol.47.1586955303005; Wed, 15 Apr 2020 05:55:03 -0700 (PDT) MIME-Version: 1.0 Date: Wed, 15 Apr 2020 14:54:52 +0200 Message-ID: Subject: MinGW pkg-config not working (part 2) To: cygwin AT cygwin DOT com X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: "Carlo B. via Cygwin" Reply-To: "Carlo B." Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Cygwin" Hello, After the release of the new pkg-conf, with the use of symlinks instead of a script for using the personality feature, I got some strange errors at compile time. Let's think to have a directory called "mylibrary" into your home directory, so you have a path for example "/home/carlo/mylibrary". In this directory create a file called "test.pc" with these lines: Name: test Description: test MinGW pkg-config on CYGWIN Version: 1.2.3 Libs: Cflags: -I/home/carlo/mylibrary Finally, add this directory to PKG_CONFIG_PATH environment variable. Now, if you type this command on the console: $ x86_64-w64-mingw32-pkg-config --cflags test -I/usr/x86_64-w64-mingw32/sys-root/home/carlo/mylibrary which is wrong, because it changed all references to "home/carlo" by appending "/usr/x86_64-w64-mingw32/sys-root". Instead, if I type: $ pkg-config --cflags test -I/home/carlo/mylibrary then the path it returned unchanged as expected. Sadly, this behavior forces you to rebuild everything and to move all stuff that you could normally have in your home directory into "/usr/x86_64-w64-mingw32/sys-root/home/carlo", othewise it won't work anymore. Am I doing something wrong or it is the expected result and there is another way to make things working again? Thank you very much. Sincerely. -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple