зеркало из https://github.com/github/ruby.git
* configure.in: do not override CCDLDFLAGS, LDFLAGS, XLDFLAGS,
DLDFLAGS and LDSHARED. * configure.in: XCFLAGS for compiling ruby itself. ARCH_FLAG is reflected in CFLAGS. * lib/mkmf.rb: ditto. do not import XCFLAGS from config.status. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
53dd83eebd
Коммит
9a8cc1f4ab
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
||||||
|
Sun Nov 30 18:22:48 2003 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||||
|
|
||||||
|
* configure.in: do not override CCDLDFLAGS, LDFLAGS, XLDFLAGS,
|
||||||
|
DLDFLAGS and LDSHARED.
|
||||||
|
|
||||||
|
* configure.in: XCFLAGS for compiling ruby itself. ARCH_FLAG is
|
||||||
|
reflected in CFLAGS.
|
||||||
|
|
||||||
|
* lib/mkmf.rb: ditto. do not import XCFLAGS from config.status.
|
||||||
|
|
||||||
Sun Nov 30 17:37:36 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
Sun Nov 30 17:37:36 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||||
|
|
||||||
* ext/tk/lib/tk.rb: bug fix [ruby-talk:86746]
|
* ext/tk/lib/tk.rb: bug fix [ruby-talk:86746]
|
||||||
|
|
161
configure.in
161
configure.in
|
@ -151,7 +151,7 @@ AC_PROG_GCC_TRADITIONAL
|
||||||
RUBY_PROG_GNU_LD
|
RUBY_PROG_GNU_LD
|
||||||
RUBY_CPPOUTFILE
|
RUBY_CPPOUTFILE
|
||||||
|
|
||||||
OUTFLAG='-o '
|
: ${OUTFLAG='-o '}
|
||||||
AC_SUBST(OUTFLAG)
|
AC_SUBST(OUTFLAG)
|
||||||
|
|
||||||
RUBY_MINGW32
|
RUBY_MINGW32
|
||||||
|
@ -174,11 +174,8 @@ cygwin*|mingw*)
|
||||||
aix*)
|
aix*)
|
||||||
AC_CHECK_TOOL(NM, nm, /usr/ccs/bin/nm, /usr/ccs/bin:$PATH)
|
AC_CHECK_TOOL(NM, nm, /usr/ccs/bin/nm, /usr/ccs/bin:$PATH)
|
||||||
;;
|
;;
|
||||||
esac
|
|
||||||
|
|
||||||
# by TOYODA Eizi <toyoda@npd.kishou.go.jp>
|
|
||||||
case "$target_os" in
|
|
||||||
hiuxmpp*)
|
hiuxmpp*)
|
||||||
|
# by TOYODA Eizi <toyoda@npd.kishou.go.jp>
|
||||||
AC_DEFINE(__HIUX_MPP__)
|
AC_DEFINE(__HIUX_MPP__)
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -782,7 +779,7 @@ linux*)
|
||||||
with_dln_a_out=yes
|
with_dln_a_out=yes
|
||||||
target_os=${target_os}-a_out
|
target_os=${target_os}-a_out
|
||||||
else
|
else
|
||||||
LDFLAGS="-rdynamic"
|
LDFLAGS="$LDFLAGS -rdynamic"
|
||||||
fi;;
|
fi;;
|
||||||
netbsd*|openbsd*)
|
netbsd*|openbsd*)
|
||||||
if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]
|
if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]
|
||||||
|
@ -805,149 +802,149 @@ AC_SUBST(DLEXT2)dnl
|
||||||
AC_SUBST(LIBEXT)dnl
|
AC_SUBST(LIBEXT)dnl
|
||||||
|
|
||||||
STATIC=
|
STATIC=
|
||||||
LIBPATHFLAG=' -L%s'
|
: ${LIBPATHFLAG=' -L%s'}
|
||||||
PATHFLAG=''
|
: ${PATHFLAG=''}
|
||||||
|
|
||||||
if test "$with_dln_a_out" != yes; then
|
if test "$with_dln_a_out" != yes; then
|
||||||
rb_cv_dlopen=unknown
|
rb_cv_dlopen=unknown
|
||||||
AC_MSG_CHECKING(whether OS depend dynamic link works)
|
AC_MSG_CHECKING(whether OS depend dynamic link works)
|
||||||
if test "$GCC" = yes; then
|
if test "$GCC" = yes; then
|
||||||
case "$target_os" in
|
case "$target_os" in
|
||||||
nextstep*) CCDLFLAGS=-fno-common;;
|
nextstep*) CCDLFLAGS="$CCDLFLAGS -fno-common";;
|
||||||
openstep*) CCDLFLAGS=-fno-common;;
|
openstep*) CCDLFLAGS="$CCDLFLAGS -fno-common";;
|
||||||
rhapsody*) CCDLFLAGS=-fno-common;;
|
rhapsody*) CCDLFLAGS="$CCDLFLAGS -fno-common";;
|
||||||
darwin*) CCDLFLAGS=-fno-common;;
|
darwin*) CCDLFLAGS="$CCDLFLAGS -fno-common";;
|
||||||
human*) ;;
|
human*) ;;
|
||||||
bsdi*) ;;
|
bsdi*) ;;
|
||||||
beos*) ;;
|
beos*) ;;
|
||||||
cygwin*) ;;
|
cygwin*) ;;
|
||||||
mingw*) ;;
|
mingw*) ;;
|
||||||
aix*) ;;
|
aix*) ;;
|
||||||
netbsd*) CCDLFLAGS=-fPIC;;
|
netbsd*) CCDLFLAGS="$CCDLFLAGS -fPIC";;
|
||||||
*) CCDLFLAGS=-fPIC;;
|
*) CCDLFLAGS="$CCDLFLAGS -fPIC";;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
case "$target_os" in
|
case "$target_os" in
|
||||||
hpux*) CCDLFLAGS='+Z';;
|
hpux*) CCDLFLAGS="$CCDLFLAGS +Z";;
|
||||||
solaris*|irix*) CCDLFLAGS='-KPIC' ;;
|
solaris*|irix*) CCDLFLAGS="$CCDLFLAGS -KPIC" ;;
|
||||||
sunos*) CCDLFLAGS='-PIC' ;;
|
sunos*) CCDLFLAGS="$CCDLFLAGS -PIC" ;;
|
||||||
esix*|uxpds*) CCDLFLAGS='-KPIC' ;;
|
esix*|uxpds*) CCDLFLAGS="$CCDLFLAGS -KPIC" ;;
|
||||||
*) CCDLFLAGS='' ;;
|
*) : ${CCDLFLAGS=""} ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "$target_os" in
|
case "$target_os" in
|
||||||
hpux*) DLDFLAGS="-E"
|
hpux*) DLDFLAGS="$DLDFLAGS -E"
|
||||||
LDSHARED='ld -b'
|
: ${LDSHARED='ld -b'}
|
||||||
XLDFLAGS="-Wl,-E"
|
XLDFLAGS="$XLDFLAGS -Wl,-E"
|
||||||
rb_cv_dlopen=yes;;
|
rb_cv_dlopen=yes;;
|
||||||
solaris*) if test "$GCC" = yes; then
|
solaris*) if test "$GCC" = yes; then
|
||||||
LDSHARED='$(CC) -Wl,-G'
|
: ${LDSHARED='$(CC) -Wl,-G'}
|
||||||
if test "$rb_cv_prog_gnu_ld" = yes; then
|
if test "$rb_cv_prog_gnu_ld" = yes; then
|
||||||
LDFLAGS="-Wl,-E"
|
LDFLAGS="$LDFLAGS -Wl,-E"
|
||||||
LDSHARED="$LDSHARED -shared"
|
LDSHARED="$LDSHARED -shared"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
LDSHARED='ld -G'
|
: ${LDSHARED='ld -G'}
|
||||||
fi
|
fi
|
||||||
rb_cv_dlopen=yes;;
|
rb_cv_dlopen=yes;;
|
||||||
sunos*) LDSHARED='ld -assert nodefinitions'
|
sunos*) : ${LDSHARED='ld -assert nodefinitions'}
|
||||||
rb_cv_dlopen=yes;;
|
rb_cv_dlopen=yes;;
|
||||||
irix*) LDSHARED='ld -shared'
|
irix*) : ${LDSHARED='ld -shared'}
|
||||||
rb_cv_dlopen=yes;;
|
rb_cv_dlopen=yes;;
|
||||||
sysv4*) LDSHARED='ld -G'
|
sysv4*) : ${LDSHARED='ld -G'}
|
||||||
rb_cv_dlopen=yes;;
|
rb_cv_dlopen=yes;;
|
||||||
nto-qnx*) LDSHARED="qcc -shared"
|
nto-qnx*) : ${LDSHARED="qcc -shared"}
|
||||||
rb_cv_dlopen=yes ;;
|
rb_cv_dlopen=yes ;;
|
||||||
esix*|uxpds*) LDSHARED="ld -G"
|
esix*|uxpds*) : ${LDSHARED="ld -G"}
|
||||||
rb_cv_dlopen=yes ;;
|
rb_cv_dlopen=yes ;;
|
||||||
osf*) LDSHARED="ld -shared -expect_unresolved \"*\""
|
osf*) : ${LDSHARED="ld -shared -expect_unresolved \"*\""}
|
||||||
rb_cv_dlopen=yes ;;
|
rb_cv_dlopen=yes ;;
|
||||||
linux*) LDSHARED="$CC -shared"
|
linux*) : ${LDSHARED="$CC -shared"}
|
||||||
rb_cv_dlopen=yes ;;
|
rb_cv_dlopen=yes ;;
|
||||||
gnu*) LDSHARED="$CC -shared"
|
gnu*) : ${LDSHARED="$CC -shared"}
|
||||||
rb_cv_dlopen=yes
|
rb_cv_dlopen=yes
|
||||||
LDFLAGS="-rdynamic" ;;
|
LDFLAGS="$LDFLAGS -rdynamic" ;;
|
||||||
freebsd*) LDSHARED="$CC -shared"
|
freebsd*) : ${LDSHARED="$CC -shared"}
|
||||||
if test "$rb_cv_binary_elf" = yes; then
|
if test "$rb_cv_binary_elf" = yes; then
|
||||||
LDFLAGS="-rdynamic"
|
LDFLAGS="$LDFLAGS -rdynamic"
|
||||||
DLDFLAGS='-Wl,-soname,$(.TARGET)'
|
DLDFLAGS="$DLDFLAGS "'-Wl,-soname,$(.TARGET)'
|
||||||
else
|
else
|
||||||
test "$GCC" = yes && test "$rb_cv_prog_gnu_ld" = yes || LDSHARED="ld -Bshareable"
|
test "$GCC" = yes && test "$rb_cv_prog_gnu_ld" = yes || LDSHARED="ld -Bshareable"
|
||||||
fi
|
fi
|
||||||
rb_cv_dlopen=yes ;;
|
rb_cv_dlopen=yes ;;
|
||||||
netbsd*) LDSHARED='${CC} -shared'
|
netbsd*) : ${LDSHARED='${CC} -shared'}
|
||||||
if test "$rb_cv_binary_elf" = yes; then
|
if test "$rb_cv_binary_elf" = yes; then
|
||||||
LDFLAGS="-Wl,-export-dynamic"
|
LDFLAGS="$LDFLAGS -Wl,-export-dynamic"
|
||||||
LIBPATHFLAG=' -L%1$-s'
|
LIBPATHFLAG=' -L%1$-s'
|
||||||
RPATHFLAG=' -Wl,-R%1$-s'
|
RPATHFLAG=' -Wl,-R%1$-s'
|
||||||
fi
|
fi
|
||||||
rb_cv_dlopen=yes ;;
|
rb_cv_dlopen=yes ;;
|
||||||
openbsd*) LDSHARED="\$(CC) -shared ${CCDLFLAGS}"
|
openbsd*) : ${LDSHARED="\$(CC) -shared ${CCDLFLAGS}"}
|
||||||
if test "$rb_cv_binary_elf" = yes; then
|
if test "$rb_cv_binary_elf" = yes; then
|
||||||
LDFLAGS="-Wl,-E"
|
LDFLAGS="$LDFLAGS -Wl,-E"
|
||||||
fi
|
fi
|
||||||
rb_cv_dlopen=yes ;;
|
rb_cv_dlopen=yes ;;
|
||||||
bsdi3*) case "$CC" in
|
bsdi3*) case "$CC" in
|
||||||
*shlicc*) LDSHARED="$CC -r"
|
*shlicc*) : ${LDSHARED="$CC -r"}
|
||||||
rb_cv_dlopen=yes ;;
|
rb_cv_dlopen=yes ;;
|
||||||
esac ;;
|
esac ;;
|
||||||
bsdi*) LDSHARED="ld -shared"
|
bsdi*) : ${LDSHARED="ld -shared"}
|
||||||
LDFLAGS='-rdynamic -Wl,-rpath,$(libdir)/ruby/$(MAJOR).$(MINOR)/i386-bsdi4.0'
|
LDFLAGS="$LDFLAGS "'-rdynamic -Wl,-rpath,$(libdir)/ruby/$(MAJOR).$(MINOR)/i386-bsdi4.0'
|
||||||
rb_cv_dlopen=yes ;;
|
rb_cv_dlopen=yes ;;
|
||||||
nextstep*) LDSHARED='cc -r -nostdlib'
|
nextstep*) : ${LDSHARED='cc -r -nostdlib'}
|
||||||
LDFLAGS="-u libsys_s"
|
LDFLAGS="$LDFLAGS -u libsys_s"
|
||||||
DLDFLAGS="$ARCH_FLAG"
|
DLDFLAGS="$DLDFLAGS $ARCH_FLAG"
|
||||||
rb_cv_dlopen=yes ;;
|
rb_cv_dlopen=yes ;;
|
||||||
openstep*) LDSHARED='cc -dynamic -bundle -undefined suppress'
|
openstep*) : ${LDSHARED='cc -dynamic -bundle -undefined suppress'}
|
||||||
LDFLAGS=""
|
: ${LDFLAGS=""}
|
||||||
DLDFLAGS="$ARCH_FLAG"
|
DLDFLAGS="$DLDFLAGS $ARCH_FLAG"
|
||||||
rb_cv_dlopen=yes ;;
|
rb_cv_dlopen=yes ;;
|
||||||
rhapsody*) LDSHARED='cc -dynamic -bundle -undefined suppress'
|
rhapsody*) : $LDSHARED='cc -dynamic -bundle -undefined suppress'}
|
||||||
LDFLAGS=""
|
: ${LDFLAGS=""}
|
||||||
DLDFLAGS="$ARCH_FLAG"
|
DLDFLAGS="$DLDFLAGS $ARCH_FLAG"
|
||||||
rb_cv_dlopen=yes ;;
|
rb_cv_dlopen=yes ;;
|
||||||
darwin*) LDSHARED='cc -dynamic -bundle -undefined suppress -flat_namespace'
|
darwin*) : ${LDSHARED='cc -dynamic -bundle -undefined suppress -flat_namespace'}
|
||||||
LDFLAGS=""
|
: ${LDFLAGS=""}
|
||||||
DLDFLAGS="$ARCH_FLAG"
|
DLDFLAGS="$DLDFLAGS $ARCH_FLAG"
|
||||||
rb_cv_dlopen=yes ;;
|
rb_cv_dlopen=yes ;;
|
||||||
aix*) LDSHARED='/usr/ccs/bin/ld'
|
aix*) : ${LDSHARED='/usr/ccs/bin/ld'}
|
||||||
XLDFLAGS='-Wl,-bE:ruby.imp'
|
XLDFLAGS="$XLDFLAGS -Wl,-bE:ruby.imp"
|
||||||
DLDFLAGS='-brtl -eInit_$(TARGET) -bI:$(topdir)/ruby.imp -bM:SRE -T512 -H512 -lc'
|
DLDFLAGS="$DLDFLAGS "'-brtl -eInit_$(TARGET) -bI:$(topdir)/ruby.imp -bM:SRE -T512 -H512 -lc'
|
||||||
LDFLAGS="-brtl"
|
LDFLAGS="$LDFLAGS -brtl"
|
||||||
ARCHFILE="ruby.imp"
|
: ${ARCHFILE="ruby.imp"}
|
||||||
rb_cv_dlopen=yes ;;
|
rb_cv_dlopen=yes ;;
|
||||||
|
|
||||||
human*) DLDFLAGS=''
|
human*) : ${DLDFLAGS=''}
|
||||||
LDSHARED=''
|
: ${LDSHARED=''}
|
||||||
LDFLAGS=''
|
: ${LDFLAGS=''}
|
||||||
LINK_SO='ar cru $@ $(OBJS)'
|
: ${LINK_SO='ar cru $@ $(OBJS)'}
|
||||||
rb_cv_dlopen=yes ;;
|
rb_cv_dlopen=yes ;;
|
||||||
beos*) case "$target_cpu" in
|
beos*) case "$target_cpu" in
|
||||||
powerpc*)
|
powerpc*)
|
||||||
LDSHARED="ld -xms"
|
: ${LDSHARED="ld -xms"}
|
||||||
DLDFLAGS='-export Init_$(TARGET) -lbe -lroot glue-noinit.a init_term_dyn.o start_dyn.o'
|
DLDFLAGS="$DLDFLAGS "'-export Init_$(TARGET) -lbe -lroot glue-noinit.a init_term_dyn.o start_dyn.o'
|
||||||
;;
|
;;
|
||||||
i586*)
|
i586*)
|
||||||
LDSHARED="ld -shared"
|
: ${LDSHARED="ld -shared"}
|
||||||
DLDFLAGS="-L/boot/develop/lib/x86 -lbe -lroot"
|
DLDFLAGS="$DLDFLAGS -L/boot/develop/lib/x86 -lbe -lroot"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
rb_cv_dlopen=yes ;;
|
rb_cv_dlopen=yes ;;
|
||||||
nto-qnx*) DLDFLAGS="-L/lib -L/usr/lib -L/usr/local/lib"
|
nto-qnx*) DLDFLAGS="$DLDFLAGS -L/lib -L/usr/lib -L/usr/local/lib"
|
||||||
LDSHARED='ld -Bshareable -x'
|
: ${LDSHARED='ld -Bshareable -x'}
|
||||||
LDFLAGS="-L/lib -L/usr/lib -L/usr/local/lib"
|
LDFLAGS="$LDFLAGS -L/lib -L/usr/lib -L/usr/local/lib"
|
||||||
rb_cv_dlopen=yes;;
|
rb_cv_dlopen=yes;;
|
||||||
cygwin*|mingw*) : ${LDSHARED="${CC} -shared -s"}
|
cygwin*|mingw*) : ${LDSHARED="${CC} -shared -s"}
|
||||||
XLDFLAGS='-Wl,--stack,0x02000000'
|
XLDFLAGS="$XLDFLAGS -Wl,--stack,0x02000000"
|
||||||
DLDFLAGS="${DLDFLAGS} -Wl,--enable-auto-import,--export-all"
|
DLDFLAGS="${DLDFLAGS} -Wl,--enable-auto-import,--export-all"
|
||||||
rb_cv_dlopen=yes ;;
|
rb_cv_dlopen=yes ;;
|
||||||
hiuxmpp) LDSHARED='ld -r' ;;
|
hiuxmpp) : ${LDSHARED='ld -r'} ;;
|
||||||
atheos*) LDSHARED="$CC -shared"
|
atheos*) : ${LDSHARED="$CC -shared"}
|
||||||
rb_cv_dlopen=yes ;;
|
rb_cv_dlopen=yes ;;
|
||||||
os2-emx*) LDFLAGS="$LDFLAGS -Zbsd-signals"
|
os2-emx*) LDFLAGS="$LDFLAGS -Zbsd-signals"
|
||||||
;;
|
;;
|
||||||
*) LDSHARED='ld' ;;
|
*) : ${LDSHARED='ld'} ;;
|
||||||
esac
|
esac
|
||||||
AC_MSG_RESULT($rb_cv_dlopen)
|
AC_MSG_RESULT($rb_cv_dlopen)
|
||||||
fi
|
fi
|
||||||
|
@ -1082,7 +1079,7 @@ rb_cv_missing_fconvert=yes, rb_cv_missing_fconvert=no, rb_cv_missing_fconvert=no
|
||||||
fi
|
fi
|
||||||
AC_LIBOBJ([x68.o])
|
AC_LIBOBJ([x68.o])
|
||||||
CFLAGS="$CFLAGS -fansi-only"
|
CFLAGS="$CFLAGS -fansi-only"
|
||||||
XCFLAGS="-cc1-stack=262144 -cpp-stack=2694144"
|
XCFLAGS="$XCFLAGS -cc1-stack=262144 -cpp-stack=2694144"
|
||||||
EXEEXT=.x
|
EXEEXT=.x
|
||||||
OBJEXT=o
|
OBJEXT=o
|
||||||
setup=Setup.x68
|
setup=Setup.x68
|
||||||
|
@ -1107,7 +1104,7 @@ if test "$prefix" = NONE; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$fat_binary" != no ; then
|
if test "$fat_binary" != no ; then
|
||||||
XCFLAGS="$ARCH_FLAG"
|
CFLAGS="$CFLAGS $ARCH_FLAG"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test x"$cross_compiling" = xyes; then
|
if test x"$cross_compiling" = xyes; then
|
||||||
|
@ -1129,10 +1126,10 @@ SOLIBS=
|
||||||
|
|
||||||
case "$target_os" in
|
case "$target_os" in
|
||||||
cygwin*|mingw*|beos*|openstep*|nextstep*|rhapsody*|darwin*|os2-emx*)
|
cygwin*|mingw*|beos*|openstep*|nextstep*|rhapsody*|darwin*|os2-emx*)
|
||||||
DLDLIBS=""
|
: ${DLDLIBS=""}
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
DLDLIBS="-lc"
|
DLDLIBS="$DLDLIBS -lc"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -1191,10 +1188,10 @@ if test "$enable_shared" = 'yes'; then
|
||||||
LIBRUBY_SO='lib$(RUBY_INSTALL_NAME).so.$(MAJOR).'`expr ${MINOR} \* 10 + ${TEENY}`
|
LIBRUBY_SO='lib$(RUBY_INSTALL_NAME).so.$(MAJOR).'`expr ${MINOR} \* 10 + ${TEENY}`
|
||||||
;;
|
;;
|
||||||
solaris*)
|
solaris*)
|
||||||
XLDFLAGS='-R${libdir}'
|
XLDFLAGS="$XLDFLAGS "'-R${libdir}'
|
||||||
;;
|
;;
|
||||||
hpux*)
|
hpux*)
|
||||||
XLDFLAGS='-Wl,+s,+b,$(libdir)'
|
XLDFLAGS="$XLDFLAGS "'-Wl,+s,+b,$(libdir)'
|
||||||
LIBRUBY_SO='lib$(RUBY_SO_NAME).sl.$(MAJOR).$(MINOR).$(TEENY)'
|
LIBRUBY_SO='lib$(RUBY_SO_NAME).sl.$(MAJOR).$(MINOR).$(TEENY)'
|
||||||
LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).sl.$(MAJOR).$(MINOR) lib$(RUBY_SO_NAME).sl'
|
LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).sl.$(MAJOR).$(MINOR) lib$(RUBY_SO_NAME).sl'
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -215,7 +215,6 @@ def link_command(ldflags, opt="", libpath=$LIBPATH)
|
||||||
'INCFLAGS' => $INCFLAGS,
|
'INCFLAGS' => $INCFLAGS,
|
||||||
'CPPFLAGS' => $CPPFLAGS,
|
'CPPFLAGS' => $CPPFLAGS,
|
||||||
'CFLAGS' => "#$CFLAGS",
|
'CFLAGS' => "#$CFLAGS",
|
||||||
'XCFLAGS' => "#$XCFLAGS",
|
|
||||||
'LDFLAGS' => "#$LDFLAGS #{ldflags}",
|
'LDFLAGS' => "#$LDFLAGS #{ldflags}",
|
||||||
'LIBPATH' => libpathflag(libpath),
|
'LIBPATH' => libpathflag(libpath),
|
||||||
'LOCAL_LIBS' => "#$LOCAL_LIBS #$libs",
|
'LOCAL_LIBS' => "#$LOCAL_LIBS #$libs",
|
||||||
|
@ -224,7 +223,7 @@ end
|
||||||
|
|
||||||
def cc_command(opt="")
|
def cc_command(opt="")
|
||||||
"$(CC) -c #$INCFLAGS -I#{$hdrdir} " \
|
"$(CC) -c #$INCFLAGS -I#{$hdrdir} " \
|
||||||
"#$CPPFLAGS #$CFLAGS #$XCFLAGS #{opt} #{CONFTEST_C}"
|
"#$CPPFLAGS #$CFLAGS #{opt} #{CONFTEST_C}"
|
||||||
end
|
end
|
||||||
|
|
||||||
def cpp_command(outfile, opt="")
|
def cpp_command(outfile, opt="")
|
||||||
|
@ -721,7 +720,7 @@ LIBRUBY_A = #{CONFIG['LIBRUBY_A']}
|
||||||
LIBRUBYARG_SHARED = #$LIBRUBYARG_SHARED
|
LIBRUBYARG_SHARED = #$LIBRUBYARG_SHARED
|
||||||
LIBRUBYARG_STATIC = #$LIBRUBYARG_STATIC
|
LIBRUBYARG_STATIC = #$LIBRUBYARG_STATIC
|
||||||
|
|
||||||
CFLAGS = #{CONFIG['CCDLFLAGS'] unless $static} #{CONFIG['XCFLAGS']} #$CFLAGS
|
CFLAGS = #{CONFIG['CCDLFLAGS'] unless $static} #$CFLAGS
|
||||||
CPPFLAGS = -I. -I$(topdir) -I$(hdrdir) -I$(srcdir) #{$defs.join(" ")} #{$CPPFLAGS}
|
CPPFLAGS = -I. -I$(topdir) -I$(hdrdir) -I$(srcdir) #{$defs.join(" ")} #{$CPPFLAGS}
|
||||||
CXXFLAGS = $(CFLAGS) #{CONFIG['CXXFLAGS']}
|
CXXFLAGS = $(CFLAGS) #{CONFIG['CXXFLAGS']}
|
||||||
DLDFLAGS = #$LDFLAGS #{CONFIG['DLDFLAGS']} #$DLDFLAGS
|
DLDFLAGS = #$LDFLAGS #{CONFIG['DLDFLAGS']} #$DLDFLAGS
|
||||||
|
@ -944,7 +943,6 @@ def init_mkmf(config = CONFIG)
|
||||||
$enable_shared = config['ENABLE_SHARED'] == 'yes'
|
$enable_shared = config['ENABLE_SHARED'] == 'yes'
|
||||||
$defs = []
|
$defs = []
|
||||||
$CFLAGS = with_config("cflags", arg_config("CFLAGS", config["CFLAGS"])).dup
|
$CFLAGS = with_config("cflags", arg_config("CFLAGS", config["CFLAGS"])).dup
|
||||||
$XCFLAGS = config['XCFLAGS'].dup
|
|
||||||
$CPPFLAGS = with_config("cppflags", arg_config("CPPFLAGS", config["CPPFLAGS"])).dup
|
$CPPFLAGS = with_config("cppflags", arg_config("CPPFLAGS", config["CPPFLAGS"])).dup
|
||||||
$LDFLAGS = (with_config("ldflags") || "").dup
|
$LDFLAGS = (with_config("ldflags") || "").dup
|
||||||
$INCFLAGS = "-I#{$topdir}"
|
$INCFLAGS = "-I#{$topdir}"
|
||||||
|
|
Загрузка…
Ссылка в новой задаче