diff options
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); |