X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 0C450329D3E for ; Sun, 26 Sep 2004 14:44:06 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 90987-10 for ; Sun, 26 Sep 2004 13:43:58 +0000 (GMT) Received: from trolak.mydnsbox2.com (ns1.mydnsbox2.com [207.44.142.118]) by svr1.postgresql.org (Postfix) with ESMTP id 96DFC329E39 for ; Sun, 26 Sep 2004 14:44:00 +0100 (BST) Received: from dunslane.net (cpe-024-211-141-025.nc.rr.com [24.211.141.25]) (authenticated (0 bits)) by trolak.mydnsbox2.com (8.11.6/8.11.6) with ESMTP id i8QDq6L30548; Sun, 26 Sep 2004 08:52:06 -0500 Message-ID: <4156C796.207@dunslane.net> Date: Sun, 26 Sep 2004 09:43:50 -0400 From: Andrew Dunstan User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040116 X-Accept-Language: en-us, en MIME-Version: 1.0 Cc: Dennis Bjorklund , Bruce Momjian , Thomas Hallgren , pgsql-hackers@postgresql.org Subject: Re: Use of zlib References: <4156C402.7080509@dunslane.net> In-Reply-To: <4156C402.7080509@dunslane.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/832 X-Sequence-Number: 59398 of course, I meant --as-needed rather than --as-necessary Andrew Dunstan wrote: > > > Dennis Bjorklund wrote: > >> This is the output in Fedora Core 2, and it includes readline: >> >> $ ldd /usr/bin/postgres >> linux-gate.so.1 => (0x00240000) >> libpam.so.0 => /lib/libpam.so.0 (0x00cf1000) >> libssl.so.4 => /lib/libssl.so.4 (0x0014e000) >> libcrypto.so.4 => /lib/libcrypto.so.4 (0x00241000) >> libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x0052a000) >> libcom_err.so.2 => /lib/libcom_err.so.2 (0x00e56000) >> libz.so.1 => /usr/lib/libz.so.1 (0x00aca000) >> libreadline.so.4 => /usr/lib/libreadline.so.4 (0x00111000) >> libtermcap.so.2 => /lib/libtermcap.so.2 (0x00f25000) >> libcrypt.so.1 => /lib/libcrypt.so.1 (0x00406000) >> libresolv.so.2 => /lib/libresolv.so.2 (0x00f8a000) >> libnsl.so.1 => /lib/libnsl.so.1 (0x00215000) >> libdl.so.2 => /lib/libdl.so.2 (0x00908000) >> libm.so.6 => /lib/tls/libm.so.6 (0x008a5000) >> libc.so.6 => /lib/tls/libc.so.6 (0x00592000) >> libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x00a57000) >> libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x00ccd000) >> /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x004ca000) >> >> >> >> > > Now, to see the things postgres really needs, as opposed to things > other libraries need or that we just throw in for good measure in case > somebody needs them, run this: > > LDFLAGS=-Wl,--as-necessary ./configure > > without any third-party options (like pam, openssl, kerberos ...), > Alternatively, you can set the flag in src/Makefile.global > > This should work on FC2, which I believe has binutils 2.15. > > Almost every line above will disappear. > > cheers > > andrew >