[gtk-doc] scanners: move LDFLAGS to up in commandline.



commit 340b385a82936fe220ab3c4fdafdddaeb48c32f0
Author: Stefan Kost <ensonic users sf net>
Date:   Sun May 9 22:11:38 2010 +0300

    scanners: move LDFLAGS to up in commandline.
    
    FIxes some issues when building using s --as-needed

 gtkdoc-scangobj.in |    2 +-
 gtkdoc-scanobj.in  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtkdoc-scangobj.in b/gtkdoc-scangobj.in
index 0593dbf..da08dad 100644
--- a/gtkdoc-scangobj.in
+++ b/gtkdoc-scangobj.in
@@ -1601,7 +1601,7 @@ $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 -o $MODULE-scan $o_file $LDFLAGS";
+$command = "$LD $LDFLAGS -o $MODULE-scan $o_file";
 system("($command)") == 0 or die "Linking of scanner failed: $!\n";
 
 print "gtk-doc: Running scanner $MODULE-scan\n";
diff --git a/gtkdoc-scanobj.in b/gtkdoc-scanobj.in
index c1589c4..e26ceba 100755
--- a/gtkdoc-scanobj.in
+++ b/gtkdoc-scanobj.in
@@ -841,7 +841,7 @@ $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 -o $MODULE-scan $o_file $LDFLAGS";
+$command = "$LD $LDFLAGS -o $MODULE-scan $o_file";
 system("($command)") == 0 or die "Linking of scanner failed: $!\n";
 
 print "gtk-doc: Running scanner $MODULE-scan\n";



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]