Hi Peter, Peter Eisentraut [2006-04-04 16:04 +0200]: > The option -Wl,-as-needed should be put into LDFLAGS instead of CFLAGS. > Otherwise you get a bunch of warnings anytime you build an extension > module. > > cc: --as-needed: linker input file unused because linking not done
Indeed I tried to use LDFLAGS before I used CFLAGS. However, LDFLAGS
does not catch everything. The postgresql-8.1 debdiff between the
current and the LDFLAG method:
Depends: libc6 (>= 2.3.4-1), libcomerr2 (>= 1.33-3), libkrb53 (>= 1.4.2),
libpam0g (>= 0.76), libpq4, {+libreadline5 (>= 5.1),+} libssl0.9.8 (>=
0.9.8a-1), {+zlib1g (>= 1:1.2.1),+} postgresql-client-8.1, postgresql-common
(>= 39)
The server certainly does not need readline (that should only be for
the client package).
debdiff for postgresql-client-8.1:
Depends: libc6 (>= 2.3.4-1), {+libkrb53 (>= 1.4.2), libpam0g (>= 0.76),+}
libpq4, libreadline5 (>= 5.1), libssl0.9.8 (>= 0.9.8a-1), zlib1g (>= 1:1.2.1),
postgresql-client-common
Any idea how I can avoid this superfluous linking?
Thanks,
Martin
--
Martin Pitt http://www.piware.de
Ubuntu Developer http://www.ubuntu.com
Debian Developer http://www.debian.org
In a world without walls and fences, who needs Windows and Gates?
signature.asc
Description: Digital signature

