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.2 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 E0A7C1F45E for ; Mon, 17 Feb 2020 09:40:46 +0000 (UTC) Received: from localhost ([::1]:42630 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3ctR-0001xD-Jf for normalperson@yhbt.net; Mon, 17 Feb 2020 04:40:45 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53460) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3ctM-0001x5-EY for bug-gnulib@gnu.org; Mon, 17 Feb 2020 04:40:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j3ctL-00029t-02 for bug-gnulib@gnu.org; Mon, 17 Feb 2020 04:40:40 -0500 Received: from smtppost.atos.net ([193.56.114.176]:4876 helo=smarthost5.atos.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j3ctK-00026Z-Bs for bug-gnulib@gnu.org; Mon, 17 Feb 2020 04:40:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=atos.net; i=@atos.net; q=dns/txt; s=mail; t=1581932438; x=1613468438; h=from:to:subject:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version; bh=Eg9l2/2dLXrFCHGM53MTIFU9eh5MudcvX2MzfIrzIqw=; b=3Ps/vA4ImwwTdEIm0UkrU8wG49ZQwVGqXvQPY0LWKuOONwJxhHXuzWRg 3pcERkjBqzr9MFYSPd2qhT8bNABuaSRRYUSLBV40iVentdGsyQhJeLNw/ TV+r9591ZLmlPG/bgTz6S9aUS3n3K60t1ggNXnFr//y4p3EZhey66dpuz c=; IronPort-SDR: 6WfCB2jptUGnKhI9gGGu6/MXCSh5MzLGhzFOVwwtCx1r0pPKUjSKHcfyXTlAQqTKbkIJDV1o8f FzAPKG5CYgx/TOKHCk+ouj/Q/U98q+fKaZe4rDLjmOQ1ULrvlSFhMtjKnar8naCrDXsWtBSnKS zMP7v/R3rpwHYgRwpni3+HizODgK2Prj6XI77Eb8WfOGV7k+FQIRw98MphB7FYdWvTuoXBj599 J99SP7Oy2falknXSp2GK36WME1GJicsDqPHHlewRuwWOgLI+w3EK0KSt22X7IrJ1vOwXGZjPoa 9kwJrNdUhf6EjHQeasvtnvWs X-IronPort-AV: E=Sophos;i="5.70,452,1574118000"; d="scan'208";a="52919710" X-MGA-submission: =?us-ascii?q?MDEjMUdSJneWlqwRFntnITCvcykqxsuCJzavXW?= =?us-ascii?q?+kAcKpyGJQPOzIvbJv4tNNdUir55YKd+4SnmPPbQUViFeBVLpq3QHeFq?= =?us-ascii?q?UEn/xW8iL6JImHKLEaC7SXYgTKYg7VFAhf+dh1B+5GNkPADSJrQ8dmGo?= =?us-ascii?q?rE?= Received: from unknown (HELO DEFTHW99ETTMSX.ww931.my-it-solutions.net) ([10.86.142.101]) by smarthost5.atos.net with ESMTP/TLS/ECDHE-RSA-AES256-SHA384; 17 Feb 2020 10:40:32 +0100 Received: from DEERLM99ETWMSX.ww931.my-it-solutions.net (10.86.142.45) by DEFTHW99ETTMSX.ww931.my-it-solutions.net (10.86.142.101) with Microsoft SMTP Server (TLS) id 14.3.468.0; Mon, 17 Feb 2020 10:40:20 +0100 Received: from DEERLM99ETQMSX.ww931.my-it-solutions.net (10.86.142.102) by DEERLM99ETWMSX.ww931.my-it-solutions.net (10.86.142.45) with Microsoft SMTP Server (TLS) id 14.3.468.0; Mon, 17 Feb 2020 10:40:20 +0100 Received: from EUR03-DB5-obe.outbound.protection.outlook.com (10.86.142.137) by hybridsmtp.it-solutions.atos.net (10.86.142.102) with Microsoft SMTP Server (TLS) id 14.3.468.0; Mon, 17 Feb 2020 10:40:19 +0100 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GPFjI+IsEVXiJK7osM5qEcXDYiA7h9TQkBLlRQBriF2ImL9JDzLkPha4Y9lRqO4ifniB50Bw2784wzU4d0+tivAX7ME+Rw5/SE/WQ8PLi0buhculiQqaKcy+CxW/nn7mxZlW2RvZPGXiap1cThYu+aoXFzDo64KdH5qBH1SLz2dsbSQ1x88LvE46pS0QVeADP6wYJa5LnuURQmOuzRRcKApWmXVDydmiE1adu5//kwuBF2LJyM7x7/SDmVfRgflREZj3TlxeGfN4WzALJIa3/ukXd7vd9nwSlgY0eU2inKB+DeVto0zpL6p+VLHvsbgs+23mV19Q36yH35elnP8Hbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Eg9l2/2dLXrFCHGM53MTIFU9eh5MudcvX2MzfIrzIqw=; b=DB18A7Jmll47n+n9iMddih3MRkn6C/2+Iw4Gi1pF0VPa4JCwTWp7ccazlERX9FAYnRtC312RhnEuiYs4PEldczXdBNOs+Q33fzS5Dwgh5JzDCjIZWNhUT+QR0XQc2nQIlWyn3a1hZKxn+UrflemPxtfMJr6qWOfjG3jz2rNknoGmvG1ZDMBzigDrfA4D7aLN24UF40dSYsiNZsSj4NNzvDtGovdZ5QX1cN/D4mMQMr8A9thkEuq7cid1CxdaTBX6SYC7cnJpLTDPpq+b62o125GnfPDqlDUzPlO0e5dGyHZt5OUWKBUBUMrOUf2av3YQLsUHLwi6Gegn9Jaw9D/4cw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=atos.net; dmarc=pass action=none header.from=atos.net; dkim=pass header.d=atos.net; arc=none Received: from DB7PR02MB4075.eurprd02.prod.outlook.com (20.177.121.149) by DB7PR02MB3931.eurprd02.prod.outlook.com (20.177.120.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2729.25; Mon, 17 Feb 2020 09:40:19 +0000 Received: from DB7PR02MB4075.eurprd02.prod.outlook.com ([fe80::d17b:9d51:5eb:c6f6]) by DB7PR02MB4075.eurprd02.prod.outlook.com ([fe80::d17b:9d51:5eb:c6f6%7]) with mapi id 15.20.2729.032; Mon, 17 Feb 2020 09:40:18 +0000 From: "CHIGOT, CLEMENT" To: Bruno Haible , "bug-gnulib@gnu.org" Subject: Re: [PATCH] m4: fix --disable-rpath for AIX Thread-Topic: [PATCH] m4: fix --disable-rpath for AIX Thread-Index: AQHV4CeA9MAJTVhxLU2kkJtn5gOhfKgesckAgAByC3M= Date: Mon, 17 Feb 2020 09:40:18 +0000 Message-ID: References: , <2576252.vWEZT3b3oR@omega> In-Reply-To: <2576252.vWEZT3b3oR@omega> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_e463cba9-5f6c-478d-9329-7b2295e4e8ed_Enabled=True; MSIP_Label_e463cba9-5f6c-478d-9329-7b2295e4e8ed_SiteId=33440fc6-b7c7-412c-bb73-0e70b0198d5a; MSIP_Label_e463cba9-5f6c-478d-9329-7b2295e4e8ed_SetDate=2020-02-17T09:40:52.310Z; MSIP_Label_e463cba9-5f6c-478d-9329-7b2295e4e8ed_Name=Atos For Internal Use - All Employees; MSIP_Label_e463cba9-5f6c-478d-9329-7b2295e4e8ed_ContentBits=0; MSIP_Label_e463cba9-5f6c-478d-9329-7b2295e4e8ed_Method=Standard; authentication-results: spf=none (sender IP is ) smtp.mailfrom=clement.chigot@atos.net; x-originating-ip: [193.56.241.24] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 59e1b7ea-5869-4c99-cb9e-08d7b38d66a2 x-ms-traffictypediagnostic: DB7PR02MB3931: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6108; x-forefront-prvs: 0316567485 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(4636009)(346002)(136003)(396003)(39860400002)(366004)(376002)(199004)(189003)(55016002)(9686003)(66446008)(71200400001)(478600001)(66556008)(64756008)(33656002)(52536014)(66946007)(86362001)(76116006)(81166006)(186003)(26005)(5660300002)(66476007)(6506007)(316002)(81156014)(8936002)(8676002)(110136005)(2906002)(7696005); DIR:OUT; SFP:1102; SCL:1; SRVR:DB7PR02MB3931; H:DB7PR02MB4075.eurprd02.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: atos.net does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: AMIb9Lzj7X8f0aiXZvYAIUWfhmwNxwrOYzSj8Ew8tWFBieryiKQpmxo8jIXCqqQdWgF0yGC86JyWzt1gWUVJCSk6fBWezcdbeHWX5CfoJSsELKxWrZ2ZTgUCGCuHwXwO+edZpIlSNRSZjhdqQa1yKuMuqWI/rMbSrOnYOO5HCI6gkwd9DbD2CIbEZV07elis+eNp+dJDI+7zYa6NKRS2uPXjUR0AtlrqqNJCuSz94EFflvjuHVh6cU6T0hop9LqKH/KVFz8n7zN0R3SaZfTI6Xp80zCxdTYTFIVWRiOi2w9lnckAjoHimf9oFbl1s9ndqbcIA8iufNkh5XFVfuSOSI1lPlmVqe2EOZy6hxFPscfdin4Nm7+URjC4S5sMMaxugbTkS/d1FAvPanx4W6VjDaqSVggh03DQb9XZlG9J3hppSGXQkNTdOllxV4YA4nEM x-ms-exchange-antispam-messagedata: ZsZw9KejyFSh/Xc5diRQwnwyhjTxG+SLvpUh6lfi+/s3lDrvLL1rT/TbOfWkxDO3hR7/gS/+GoZ+hJpEv5cvEX2UChn11icgpFsYpi2Yju3ziU4/r9G+8z0Js9p3vZGRs3BubHuQSkzCGjTriy5QTg== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 59e1b7ea-5869-4c99-cb9e-08d7b38d66a2 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Feb 2020 09:40:18.8171 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 33440fc6-b7c7-412c-bb73-0e70b0198d5a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: HftwPbx3mVp01kFfVKdj3//Ed8u8Q23f8xdv8EhODevGcEzqdhlilyTzsRFHGUY7xmSkTCX9bm3pl9MHDU1DqQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR02MB3931 X-OriginatorOrg: atos.net X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 193.56.114.176 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: , Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" Hi Bruno,=0A= =0A= >> Currently, --disable-rpath will add directly $found_so to the compilatio= n=0A= >> line. However, on AIX, this will result on the path being hardcoded in= =0A= >> the built binaries.=0A= >> The only way to avoid hardcoded paths without using linker flags (like= =0A= >> -Wl,-bnoipath) is to add -l$name.=0A= =0A= > Can you tell on which package and on which AIX version this patch has an= =0A= effect?=0A= =0A= I'm using it in most of the GNU packages (gettext, libiconv, libunistring, = ...)=0A= on AIX 6.1. But it should be the same of other AIX versions.=0A= =0A= > I tried it with GNU gettext 0.20.1 on AIX 7.1, with gcc and with=0A= > --disable-rpath, and found that the generated executables have the same= =0A= > directories hardcoded as without your patch.=0A= =0A= > $ gmake ngettext=0A= > /bin/sh ../libtool --tag=3DCC --mode=3Dlink gcc -DINSTALLDIR=3D\"/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 =0A= > libtool: link: gcc -DINSTALLDIR=3D\"/home/haible/prefix32-norpath/bin\" -= g -O2 -o .libs/ngettext ngettext-ngettext.o -pthread -L/home/haible/prefix= 32-norpath/lib ../gnulib-lib/libgrt.a -L../intl/.libs -lintl -L/opt/freewar= e/lib -liconv -pthread -Wl,-blibpath:/home/haible/prefix32-norpath/lib:/opt= /freeware/lib:/home/haible/prefix32-norpath/lib:/opt/freeware/lib/gcc/power= pc-ibm-aix7.1.0.0/4.8.1:/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.1/= ../../..:/usr/lib:/lib=0A= =0A= >You can see that the Makefile does not pass abolute library names to 'libt= ool',=0A= >and nevertheless 'libtool' sets the libpath property as shown.=0A= =0A= Actually, I've coupled it with another patch making shared object extension= =0A= being ".a", as it's supposed to be on AIX when -brtl flag isn't present.=0A= By default, so in your case, shared extension is ".so". Therefore, in the= =0A= configure, found_so will be null if your system doesn't have any libiconv.s= o=0A= under /opt/freeware/lib (which it should be).=0A= Could you tell me if you're ending up having "-L/opt/freeware/lib -liconv"= =0A= because both "found_a" and "found_so" is null or because of something else = ?=0A= =0A= Anyway, I think even if this patch doesn't apply to every cases. The curren= t=0A= default behavior of configure is that if a found_so is found (either .a or = .so)=0A= and --disable-rpath is provided, it will link with=0A= "/opt/freeware/lib/libname.a" and thus the directory will be hardcoded.=0A= That's doing exactly what we're trying to avoid. =0A= =0A=