diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2007-08-18 19:14:54 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2007-08-18 19:14:54 +0000 |
commit | 3640c0a8df7e75cadfa62da23304e12202efcfdb (patch) | |
tree | a41ed14ed9a8bbcfb17235457e01f377d83d0043 /buildtools/configure.pl | |
parent | 6a4743a5b8132c70eb5e4df40a11c5bfdf3bcc23 (diff) | |
download | netpbm-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-x | buildtools/configure.pl | 5 |
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); |