summaryrefslogtreecommitdiffstats
path: root/lib/mkmf.rb
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-10-21 16:09:09 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-10-21 16:09:09 +0000
commit0f827f9562c98c3119798d42d517b96ba7f77478 (patch)
tree9bc78e5ed17af43bd61b83089ce25d71e2385a47 /lib/mkmf.rb
parent0243b2c15900f836358e186bb5e29a7d91aa28b4 (diff)
downloadruby-0f827f9562c98c3119798d42d517b96ba7f77478.tar.gz
ruby-0f827f9562c98c3119798d42d517b96ba7f77478.tar.xz
ruby-0f827f9562c98c3119798d42d517b96ba7f77478.zip
* configure.in (RUBY_CPPOUTFILE): fix cache file bug.
* lib/mkmf.rb (link_command): put 'opt' after conftest.c for static linking. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/mkmf.rb')
-rw-r--r--lib/mkmf.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index dab92c084..a4ddda06d 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="")