about summary refs log tree commit diff
path: root/buildtools/configure.pl
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2007-08-18 19:14:54 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2007-08-18 19:14:54 +0000
commit3640c0a8df7e75cadfa62da23304e12202efcfdb (patch)
treea41ed14ed9a8bbcfb17235457e01f377d83d0043 /buildtools/configure.pl
parent6a4743a5b8132c70eb5e4df40a11c5bfdf3bcc23 (diff)
downloadnetpbm-mirror-3640c0a8df7e75cadfa62da23304e12202efcfdb.tar.gz
netpbm-mirror-3640c0a8df7e75cadfa62da23304e12202efcfdb.tar.xz
netpbm-mirror-3640c0a8df7e75cadfa62da23304e12202efcfdb.zip
In test links, put -l's after .o's
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@376 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'buildtools/configure.pl')
-rwxr-xr-xbuildtools/configure.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/buildtools/configure.pl b/buildtools/configure.pl
index 97e3c33f..3a0592ad 100755
--- a/buildtools/configure.pl
+++ b/buildtools/configure.pl
@@ -241,8 +241,11 @@ sub testCompileLink($$$) {
     print $cFile @{$cSourceCodeR};
     
     my ($oFile, $oFileName) = tempFile('');
+
+    # Note that $flags may contain -l options, which where static linking
+    # is involved have to go _after_ the base object file ($oFileName).
     
-    my $compileCommand = "$testCc -o $oFileName $flags $cFileName";
+    my $compileCommand = "$testCc -o $oFileName $cFileName $flags";
     print ("Doing test compile/link: $compileCommand\n");
     my $rc = system($compileCommand);