diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-10-21 16:09:09 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-10-21 16:09:09 +0000 |
commit | 79c8b98fac05a37cd4d83982e9ad2820a15de420 (patch) | |
tree | 9bc78e5ed17af43bd61b83089ce25d71e2385a47 /lib/mkmf.rb | |
parent | b9ecdfaa3d8bb6c318c2299f020a0583bcdfe88c (diff) | |
download | ruby-79c8b98fac05a37cd4d83982e9ad2820a15de420.tar.gz |
* configure.in (RUBY_CPPOUTFILE): fix cache file bug.
* lib/mkmf.rb (link_command): put 'opt' after conftest.c for
static linking.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/mkmf.rb')
-rw-r--r-- | lib/mkmf.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb index dab92c084c..a4ddda06d2 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -202,11 +202,11 @@ def link_command(ldflags, opt="", libpath=$LIBPATH) 'src' => CONFTEST_C, 'INCFLAGS' => $INCFLAGS, 'CPPFLAGS' => $CPPFLAGS, - 'CFLAGS' => "#$CFLAGS #{opt}", + 'CFLAGS' => "#$CFLAGS", 'LDFLAGS' => "#$LDFLAGS #{ldflags}", 'LIBPATH' => libpathflag(libpath), 'LOCAL_LIBS' => "#$LOCAL_LIBS #$libs", - 'LIBS' => "#$LIBRUBYARG #$LIBS") + 'LIBS' => "#$LIBRUBYARG ${opt} #$LIBS") end def cc_command(opt="") |