From unknown Wed Jun 18 22:59:45 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#54444 <54444@debbugs.gnu.org> To: bug#54444 <54444@debbugs.gnu.org> Subject: Status: wrong .pc file for `configure --disable-shared` Reply-To: bug#54444 <54444@debbugs.gnu.org> Date: Thu, 19 Jun 2025 05:59:45 +0000 retitle 54444 wrong .pc file for `configure --disable-shared` reassign 54444 guile submitter 54444 Werner LEMBERG severity 54444 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 18 06:23:31 2022 Received: (at submit) by debbugs.gnu.org; 18 Mar 2022 10:23:31 +0000 Received: from localhost ([127.0.0.1]:56375 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nV9lb-0003Y9-DL for submit@debbugs.gnu.org; Fri, 18 Mar 2022 06:23:31 -0400 Received: from lists.gnu.org ([209.51.188.17]:34882) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nV9la-0003Y1-49 for submit@debbugs.gnu.org; Fri, 18 Mar 2022 06:23:30 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38692) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nV9lZ-0005kg-VY for bug-guile@gnu.org; Fri, 18 Mar 2022 06:23:29 -0400 Received: from mout02.posteo.de ([185.67.36.66]:50187) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nV9lY-0003ug-4r for bug-guile@gnu.org; Fri, 18 Mar 2022 06:23:29 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 39B8B240101 for ; Fri, 18 Mar 2022 11:23:26 +0100 (CET) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4KKg8F5RPjz9rxd for ; Fri, 18 Mar 2022 11:23:25 +0100 (CET) Date: Fri, 18 Mar 2022 10:23:20 +0000 (UTC) Message-Id: <20220318.112320.1724489575830201298.wl@gnu.org> To: bug-guile@gnu.org Subject: wrong .pc file for `configure --disable-shared` From: Werner LEMBERG Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=185.67.36.66; envelope-from=werner.lemberg@posteo.de; helo=mout02.posteo.de X-Spam_score_int: -39 X-Spam_score: -4.0 X-Spam_bar: ---- X-Spam_report: (-4.0 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) [guile 2.2.7] If I configure guile with ``` configure --disable-shared ``` the created `guile-2.2.pc` is incorrect: Instead of ``` Libs: -L${libdir} -lguile-2.2 -lgc Libs.private: -lgmp -lltdl -L/usr/lib64/../lib64 -lffi \ -lunistring -lcrypt -lm ``` it should have ``` Libs: -L${libdir} -lguile-2.2 -lgc \ -lgmp -lltdl -L/usr/lib64/../lib64 -lffi \ -lunistring -lcrypt -lm ``` IMHO the user must not be forced to know how guile was installed. Or to say it differently: It's not the job of an application's `configure` script to find out whether it has to pass the `--static` keyword to `pkg-config` if it just wants to link to guile in general. Werner