diff options
Diffstat (limited to 'lib')
-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="") |