From 038257110b31546ab7a0b03e314e56e494499b6f Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Sun, 9 May 2010 23:11:27 +0300 Subject: scanners: reorder again and add work-around for --as-needed brokeness We want to have the objects first, then the libs and the target last. For historic reasons ldflags and libs are merged :/. Ideally we'd like to turn off as-needed in the docs (won't help here anyway), but I am not sure wheter its a good idea to add "-Wl,--no-as-needed" to the linker command (in regard to platform compat). --- gtkdoc-scangobj.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gtkdoc-scangobj.in') diff --git a/gtkdoc-scangobj.in b/gtkdoc-scangobj.in index da08dad..3ab9828 100644 --- a/gtkdoc-scangobj.in +++ b/gtkdoc-scangobj.in @@ -1601,7 +1601,9 @@ $command = "$CC $CFLAGS -c -o $o_file $MODULE-scan.c"; system("($command)") == 0 or die "Compilation of scanner failed: $!\n"; print "gtk-doc: Linking scanner\n"; -$command = "$LD $LDFLAGS -o $MODULE-scan $o_file"; +# FIXME: Can we turn off as-needed for the docs (or better fix it?) +#$command = "$LD -Wl,--no-as-needed $o_file $LDFLAGS -o $MODULE-scan"; +$command = "$LD $o_file $LDFLAGS -o $MODULE-scan"; system("($command)") == 0 or die "Linking of scanner failed: $!\n"; print "gtk-doc: Running scanner $MODULE-scan\n"; -- cgit v1.2.1