* 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:
usa 2001-12-02 18:33:10 +00:00
Родитель dd17e103f4
Коммит a2ec07f1d1
2 изменённых файлов: 16 добавлений и 14 удалений

Просмотреть файл

@ -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>
* configure.in: use GCC, not without_gcc. remove without_gcc.

Просмотреть файл

@ -559,12 +559,7 @@ if test "$with_dln_a_out" != yes; then
beos*) ;;
cygwin*) ;;
mingw*) ;;
netbsd*) CCDLFLAGS=-fpic
case "$target_cpu" in
mips*) CCDLFLAGS=-fPIC ;;
sparc) CCDLFLAGS=-fPIC ;;
*) ;;
esac ;;
netbsd*) CCDLFLAGS=-fPIC;;
*) CCDLFLAGS=-fPIC;;
esac
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"
fi
rb_cv_dlopen=yes ;;
netbsd*) LDSHARED="ld -shared"
if test "$rb_cv_binary_elf" = yes; then
LDFLAGS="-export-dynamic"
fi
netbsd*) LDSHARED='${CC} -shared'
LDFLAGS=""
rb_cv_dlopen=yes ;;
openbsd*) LDSHARED="ld -Bforcearchive -Bshareable"
rb_cv_dlopen=yes ;;
@ -885,11 +878,13 @@ if test "$enable_shared" = 'yes'; then
;;
netbsd*)
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
LIBRUBY_ALIASES='lib$(RUBY_INSTALL_NAME).so.$(MAJOR) lib$(RUBY_INSTALL_NAME).so'
else
LIBRUBY_ALIASES= # a.out platforms
LIBRUBY_ALIASES='lib$(RUBY_INSTALL_NAME).so.$(MAJOR)$(MINOR) lib$(RUBY_INSTALL_NAME).so'
else # a.out platforms
LIBRUBY_ALIASES=""
fi
;;
openbsd*)
@ -933,6 +928,9 @@ if test "$enable_shared" = 'yes'; then
fi
case "$target_os" in
netbsd*)
CFLAGS="$CFLAGS -pipe"
;;
nextstep*)
CFLAGS="$CFLAGS -pipe"
;;