mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* configure.in: apply patch from NetBSD's pkgsrc (patch-aa).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
dd17e103f4
commit
a2ec07f1d1
2 changed files with 16 additions and 14 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Mon Dec 3 03:32:22 2001 Usaku Nakamura <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* configure.in: apply patch from NetBSD's pkgsrc (patch-aa).
|
||||||
|
|
||||||
Sun Dec 2 22:01:52 2001 WATANABE Hirofumi <eban@ruby-lang.org>
|
Sun Dec 2 22:01:52 2001 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||||
|
|
||||||
* configure.in: use GCC, not without_gcc. remove without_gcc.
|
* configure.in: use GCC, not without_gcc. remove without_gcc.
|
||||||
|
|
26
configure.in
26
configure.in
|
@ -559,12 +559,7 @@ if test "$with_dln_a_out" != yes; then
|
||||||
beos*) ;;
|
beos*) ;;
|
||||||
cygwin*) ;;
|
cygwin*) ;;
|
||||||
mingw*) ;;
|
mingw*) ;;
|
||||||
netbsd*) CCDLFLAGS=-fpic
|
netbsd*) CCDLFLAGS=-fPIC;;
|
||||||
case "$target_cpu" in
|
|
||||||
mips*) CCDLFLAGS=-fPIC ;;
|
|
||||||
sparc) CCDLFLAGS=-fPIC ;;
|
|
||||||
*) ;;
|
|
||||||
esac ;;
|
|
||||||
*) CCDLFLAGS=-fPIC;;
|
*) CCDLFLAGS=-fPIC;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
|
@ -611,10 +606,8 @@ if test "$with_dln_a_out" != yes; then
|
||||||
test "$GCC" = yes && `$CC --print-prog-name=ld` -v 2>&1 | grep "GNU ld" > /dev/null || LDSHARED="ld -Bshareable"
|
test "$GCC" = yes && `$CC --print-prog-name=ld` -v 2>&1 | grep "GNU ld" > /dev/null || LDSHARED="ld -Bshareable"
|
||||||
fi
|
fi
|
||||||
rb_cv_dlopen=yes ;;
|
rb_cv_dlopen=yes ;;
|
||||||
netbsd*) LDSHARED="ld -shared"
|
netbsd*) LDSHARED='${CC} -shared'
|
||||||
if test "$rb_cv_binary_elf" = yes; then
|
LDFLAGS=""
|
||||||
LDFLAGS="-export-dynamic"
|
|
||||||
fi
|
|
||||||
rb_cv_dlopen=yes ;;
|
rb_cv_dlopen=yes ;;
|
||||||
openbsd*) LDSHARED="ld -Bforcearchive -Bshareable"
|
openbsd*) LDSHARED="ld -Bforcearchive -Bshareable"
|
||||||
rb_cv_dlopen=yes ;;
|
rb_cv_dlopen=yes ;;
|
||||||
|
@ -885,11 +878,13 @@ if test "$enable_shared" = 'yes'; then
|
||||||
;;
|
;;
|
||||||
netbsd*)
|
netbsd*)
|
||||||
SOLIBS='$(LIBS)'
|
SOLIBS='$(LIBS)'
|
||||||
LIBRUBY_SO='lib$(RUBY_INSTALL_NAME).so.$(MAJOR).$(MINOR)'
|
LIBRUBY_SO='lib$(RUBY_INSTALL_NAME).so.$(MAJOR)$(MINOR).$(TEENY)'
|
||||||
|
LIBRUBY_DLDFLAGS='-Wl,-soname,lib$(RUBY_INSTALL_NAME).so.$(MAJOR)$(MINOR)'
|
||||||
|
LIBRUBYARG='-Wl,-R -Wl,${prefix}/lib -L${prefix}/lib -L. -l$(RUBY_INSTALL_NAME) -Wl,-R -Wl,${X11BASE}/lib -L${X11BASE}/lib'
|
||||||
if test "$rb_cv_binary_elf" = yes; then # ELF platforms
|
if test "$rb_cv_binary_elf" = yes; then # ELF platforms
|
||||||
LIBRUBY_ALIASES='lib$(RUBY_INSTALL_NAME).so.$(MAJOR) lib$(RUBY_INSTALL_NAME).so'
|
LIBRUBY_ALIASES='lib$(RUBY_INSTALL_NAME).so.$(MAJOR)$(MINOR) lib$(RUBY_INSTALL_NAME).so'
|
||||||
else
|
else # a.out platforms
|
||||||
LIBRUBY_ALIASES= # a.out platforms
|
LIBRUBY_ALIASES=""
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
openbsd*)
|
openbsd*)
|
||||||
|
@ -933,6 +928,9 @@ if test "$enable_shared" = 'yes'; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "$target_os" in
|
case "$target_os" in
|
||||||
|
netbsd*)
|
||||||
|
CFLAGS="$CFLAGS -pipe"
|
||||||
|
;;
|
||||||
nextstep*)
|
nextstep*)
|
||||||
CFLAGS="$CFLAGS -pipe"
|
CFLAGS="$CFLAGS -pipe"
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue