Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 22C281E3525D for ; Thu, 12 Jul 2012 21:05:11 -0300 (ADT) Received: from mail-we0-f174.google.com ([74.125.82.174]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SpTNd-0001Jp-2L for pgsql-bugs@postgresql.org; Fri, 13 Jul 2012 00:05:10 +0000 Received: by weyx8 with SMTP id x8so2100205wey.19 for ; Thu, 12 Jul 2012 17:04:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrullrich.net; s=google; h=message-id:date:from:user-agent:mime-version:newsgroups:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=gz/cRV/19D4znF3UtLgCS7WZuolaxcpobmJBHi90sqE=; b=UmhSiVl7vXxqS40AqnYJjlvubAjFWilX6ldozIZ9hYjb0cokvo5G7W6WJL9BjcBd50 ar3FSQ/uHgzOooDHSzwIvcd9Fg0PkvlXSbXRkR7dvZ4KfMSBd8+QmowND/n3+O6NVnWy 78WpA1NEmtUNwfUdXRTNvThANMcQ84k0xlY+U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:newsgroups:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=gz/cRV/19D4znF3UtLgCS7WZuolaxcpobmJBHi90sqE=; b=VLAobO3fARLX+qtBSmV5Dl1Op3BX4IPEzbSuTSiZDP8Qd/Z/ajivWTp3pdRFawvF3l VoaAAB8UpSCc7xmQVW1Ke7wb4AcPCtx50/IxB78uSg6VvvleG3h+xgn30vS5gdW+3yLO I7FOBwNdognTLMIgJn+kmwVTH4z0+EKp3F1vm2gFOENYu5804+QjHaVVRvN9d7Q9Y1iK vyBJOaNTHNDoI0Xoov44pWnDrZjmpe9HoZL6Qrsw4GYGPFQ4/WimRiN/+U58thxOMxe2 Me6Pttf75yGasVUMsgtHMfxza0ZILxsv3P46bXxcYaAcW1RTsMoyTtclqAF9Ey9vw09v IzWg== Received: by 10.216.71.202 with SMTP id r52mr135349wed.130.1342137895972; Thu, 12 Jul 2012 17:04:55 -0700 (PDT) Received: from [192.168.2.23] (p5081EBFB.dip.t-dialin.net. [80.129.235.251]) by mx.google.com with ESMTPS id b7sm562958wiz.9.2012.07.12.17.04.53 (version=SSLv3 cipher=OTHER); Thu, 12 Jul 2012 17:04:55 -0700 (PDT) Message-ID: <4FFF6622.2090202@chrullrich.net> Date: Fri, 13 Jul 2012 02:04:50 +0200 From: Christian Ullrich User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 Newsgroups: gmane.comp.db.postgresql.bugs CC: Tom Lane , pgsql-bugs@postgresql.org Subject: Re: BUG #6732: Build issue when using gettext on FreeBSD 9 References: <29635.1342113922@sss.pgh.pa.us> <4FFF6503.1020301@chrullrich.net> In-Reply-To: <4FFF6503.1020301@chrullrich.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQkkAIkOVWcyQZ23PUUjkv3KJ62qsplwVmCaTEtrQFKNWZchBL6mEswyj87s8tJQakBtX1hh X-Pg-Spam-Score: -1.7 (-) X-Archive-Number: 201207/93 X-Sequence-Number: 33569 * Christian Ullrich wrote: > I think I have a pretty good fix: Early in configure, see if the linker > understands --no-copy-dt-needed-entries, or alternatively > --no-add-needed (which is a deprecated name for the same thing). This is > the "light" version of --as-needed: It does not discard unneeded > libraries immediately, but ignores their dependencies. configure > basically works as before, except that indirect dependencies cannot > "hide" required libraries from it anymore. Oh, I should have made this clearer: This works without any modification to configure or anything else, so configure can still add --as-needed to the build LDFLAGS. -- Christian