From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-4.0 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 2EEE31F45E for ; Mon, 17 Feb 2020 02:22:22 +0000 (UTC) Received: from localhost ([::1]:39278 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3W3A-0002lj-JH for normalperson@yhbt.net; Sun, 16 Feb 2020 21:22:20 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42268) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3W33-0002lX-G2 for bug-gnulib@gnu.org; Sun, 16 Feb 2020 21:22:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j3W32-00048f-EB for bug-gnulib@gnu.org; Sun, 16 Feb 2020 21:22:13 -0500 Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::4]:18454) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j3W31-00044f-PN for bug-gnulib@gnu.org; Sun, 16 Feb 2020 21:22:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1581906128; s=strato-dkim-0002; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=bg/TwcKNwg+0mITZ78FOyilNpKTmoSxEXw/FFHs3JRQ=; b=p+gl9XRWWCsAtbv5JtySij/XAqdLtCCnfcXTFAYBZrX2SPsEify55W/dnTnuAtHz/1 MvqRF20bx4VTszgtMEUnCiHTj8hdOMdv88xmkVrIJYYFP41c2vy7tSvMrQ5YPZREVjjA zRzWU/CSMopZeTUZ23/geN7w7YzUvCARoEKWXbWubFkKZn1Hk/prBBqZ49n34ShDsepr 8pkc5Kf9QlNqegnqIYfW1PdBG18wWSjmnHbfLOypaeHlZFK5sWqbJRatCMCRQsp8aloT WNk4FysDthFCWBLfuzI//TftGJFF1cwoD558AVLF4P+QUtXVOXh10bU5bl4MwEiG1bMH lr8A== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH+AHjwLuWOH6fzxfs=" X-RZG-CLASS-ID: mo00 Received: from bruno.haible.de by smtp.strato.de (RZmta 46.1.12 DYNA|AUTH) with ESMTPSA id g00701w1H2M6DzP (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Mon, 17 Feb 2020 03:22:06 +0100 (CET) From: Bruno Haible To: bug-gnulib@gnu.org Subject: Re: [PATCH] m4: fix --disable-rpath for AIX Date: Mon, 17 Feb 2020 03:22:06 +0100 Message-ID: <2576252.vWEZT3b3oR@omega> User-Agent: KMail/5.1.3 (Linux/4.4.0-171-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a01:238:20a:202:5300::4 X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "CHIGOT, CLEMENT" Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" Hi Clement, > Currently, --disable-rpath will add directly $found_so to the compilation > line. However, on AIX, this will result on the path being hardcoded in > the built binaries. > The only way to avoid hardcoded paths without using linker flags (like > -Wl,-bnoipath) is to add -l$name. Can you tell on which package and on which AIX version this patch has an effect? I tried it with GNU gettext 0.20.1 on AIX 7.1, with gcc and with --disable-rpath, and found that the generated executables have the same directories hardcoded as without your patch. $ gmake ngettext /bin/sh ../libtool --tag=CC --mode=link gcc -DINSTALLDIR=\"/home/haible/prefix32-norpath/bin\" -g -O2 -L/home/haible/prefix32-norpath/lib -o ngettext ngettext-ngettext.o ../gnulib-lib/libgrt.a ../intl/libintl.la -liconv -pthread -liconv libtool: link: gcc -DINSTALLDIR=\"/home/haible/prefix32-norpath/bin\" -g -O2 -o .libs/ngettext ngettext-ngettext.o -pthread -L/home/haible/prefix32-norpath/lib ../gnulib-lib/libgrt.a -L../intl/.libs -lintl -L/opt/freeware/lib -liconv -pthread -Wl,-blibpath:/home/haible/prefix32-norpath/lib:/opt/freeware/lib:/home/haible/prefix32-norpath/lib:/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.1:/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.1/../../..:/usr/lib:/lib You can see that the Makefile does not pass abolute library names to 'libtool', and nevertheless 'libtool' sets the libpath property as shown. I fear that making --disable-rpath work on AIX is a much harder endeavor... Bruno