From 3640c0a8df7e75cadfa62da23304e12202efcfdb Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sat, 18 Aug 2007 19:14:54 +0000 Subject: 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 --- buildtools/configure.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'buildtools/configure.pl') 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); -- cgit 1.4.1