diff options
author | Stefan Kost <ensonic@users.sf.net> | 2010-05-09 23:11:27 +0300 |
---|---|---|
committer | Stefan Kost <ensonic@users.sf.net> | 2010-05-09 23:19:26 +0300 |
commit | 038257110b31546ab7a0b03e314e56e494499b6f (patch) | |
tree | 41f633fd35df2df31b03b85a9aab9e07aa7344ef /gtkdoc-scangobj.in | |
parent | 57620e655df0d325f88db12a8d6d51fc017844fd (diff) | |
download | gtk-doc-038257110b31546ab7a0b03e314e56e494499b6f.tar.gz |
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).
Diffstat (limited to 'gtkdoc-scangobj.in')
-rw-r--r-- | gtkdoc-scangobj.in | 4 |
1 files changed, 3 insertions, 1 deletions
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"; |