GNOME Bugzilla – Bug 611934
Use -Wl,--no-undefined instead of -no-undefined
Last modified: 2010-03-20 18:09:39 UTC
Created attachment 155350 [details] [review] Use -Wl,--no-undefined according to ld's manpage the options for listing undefined referenes is --no-undefined (and therefore -Wl,--no-undefined when passed on from gcc) and not -no-undefined. Attached patch fixes this. I couldn't find the -version-info option in gcc/ld's docs either but left it in for now since it might work on other platforms.
Thanks for this patch - applying it actually identified the X11 bug mentioned elsewhere, so its good to have this fix. Pushed in this commit: commit d89b376af1a5a8a28486062ee397e9a55b4f9ac9 Author: Guido Günther <agx@sigxcpu.org> Date: Sat Mar 20 18:08:10 2010 +0000 Add -Wl since --no-undefined is a linker option The --no-undefined option was not being processed correctly, since it needs a -Wl prefix to be passed through to the linker * src/Makefile.am: Add -Wl to --no-undefined arg