-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2010-11-12 13:51, Julien Valroff wrote: > Le vendredi 12 nov. 2010 à 13:48:01 (+0100), Raphael Hertzog a écrit : >> Hi, >> >> On Fri, 12 Nov 2010, Cristian Henzel wrote: >>> P.S. I find it odd that it includes the package even if there's no >>> referece to it and I also use -Wl,--as-needed... >> >> Maybe -Wl,--as-needed is not smart enough to cover this case. Entirely >> dropping the -lpthread is the only way to fix this apparently. > > I haven't checked the package at all, but if it uses libtool, it might also > be related to #347650 [0] which prevents -Wl,--as-needed to work as expected. > > Cheers, > Julien > > [0] http://bugs.debian.org/347650 >
I noticed that --as-needed was one of the first arguments passed and is definitely passed before the libraries. I think the issue is that it picks up -pthread via pkg-config and - --as-needed does not handle -pthread, since it is not a "-l", but it is a wild-guess. ~Niels -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBCAAGBQJM3UDNAAoJEAVLu599gGRC6U8P/RApv10gubEdmmOMaY72p6ii EjBVx7X1q/HZ+W0S8vRDCj6EHnFRB3u/fmE+9qdfDGvKVmmj0sDmifCJfEWzFwDa oyovoMLqTNHpSfsMxRpzHXS186v2fwVl78094NBz7GAvQrUyCatDuu6l7gqjdDJ9 9nw6yazB4uoIlFqOdEpDcEJ2SUzJy1O3TBeOTAIXbnyMMViD4BK+Mtf6nSfYMl7v xxVXYBcBoWI5IJnglffCbf4OxO7oNru6WT/XhBcgWFIHgMZj1Q9SEMtun+39xHWf btmgfo+GVJZNEWDSaHHSjNbrJEM9dFcbrNfF0x9aYyVkvSSlfgodTepH5TDL3doc ZEmEMLOhVyF4D8wTfishZsnuWIfjE/naa9AqTc6ezIzsMMXWRKqU61ykUWyTyCqO gvwrPbUQ4fm9Eet3DSIgbGyD5kCd6+aSwIbav11yr9xEybViLB5bmrQub2xcnpJa lHQmde6gLiZfKdjwOy+cviKbWXy5E8Ny1b2NzmhtWOeOeBRW4+GVuy6iEVtc4BJh QMSDxZhI08mJ92uyaOwLvC9+gNNaIVceeuDWyX6/oXjTxTfAilpe5WXStbZuWBgQ h5wDrqEs91uIpa3NuJ15xbjedn7HF449eHmuVW0BGmoT8fIY8lEeULI2ZZVzs3iM fsbwKnzkTfwV+DkjWwuS =6bve -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4cdd40ce.8040...@thykier.net