--nextPart1171049.NUDpBcnNO8 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline George Staikos wrote: > This linker flag, -Wl,--as-needed, is causing some rather major > problems for Kst build. It's a flag turned on only if you give configure the option=20 =2D-enable-new-ldtags. It's like --enable-final, and we all know there are= =20 programs that don't work with --enable-final. > If it's included, at least with my SuSE 9.2=20 > install, it completely botches the GSL link and causes our plugins to > crash when running. The only way to remove the flag (which makes it > link properly), is to remove $(all_libraries), but that breaks compile > on other platforms. Does anyone know if there's a problem with SuSE > 9.2's ld or gsl packages? Or can we come up with a solution to > optionally remove that flag? See above. But the problem you're reporting doesn't make sense. The only effect=20 =2D-as-needed has is remove unnecessary libraries from the ELF binaries.=20 Whatever is needed will be pulled in normally. This indicates the problem=20 is something else. > The details of the problem are that with the flag, when I link > gslcblas and gsl into a plugin, it seems to drop gslcblas for no > apparent reason. Either it's an ld bug, or gslcblas isn't needed. > It's definitely needed though. The plugin crashes=20 > due to missing symbol when running it without gslcblas linked in. The linker adds the NEEDED symbol only for what the resulting binary=20 requires *directly*. If your plugin doesn't need anything from gslcblas,=20 it won't be listed in the NEEDED section. It doesn't matter if a library=20 you use needs stuff from it --- the dependency isn't direct. What probably is wrong is gsl and gslcblas themselves. I have seen many=20 libraries that fail to link to their required dependencies, and in turn=20 expect the final program to do that. =2D-=20 Thiago Macieira - thiago (AT) macieira (DOT) info PGP/GPG: 0x6EF45358; fingerprint: E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358 3. Ac seo woruld wear=F0 geborod, sw=E1 se Scieppend cwea=F0 "Gewurde Unix"= and=20 wundor fremede and him "Unix" genemned, =FE=E6t is se rihtendgesamnung. --nextPart1171049.NUDpBcnNO8 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQBCaswyM/XwBW70U1gRAv3xAKCJ2eJEJeu7umNI4VayP5MbuwRlgwCdGKBj U3c/rvdXnO4brbBIdu7/DTI= =zfVd -----END PGP SIGNATURE----- --nextPart1171049.NUDpBcnNO8--