Created
November 26, 2011 07:54
-
-
Save agrimm/1395262 to your computer and use it in GitHub Desktop.
Lines 39583 to 39783
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FIRSTMAKEFILE="" | |
LIBRUBY_A='lib$(RUBY_SO_NAME)-static.a' | |
LIBRUBY='$(LIBRUBY_A)' | |
LIBRUBYARG_STATIC='-l$(RUBY_SO_NAME)-static' | |
LIBRUBYARG='$(LIBRUBYARG_STATIC)' | |
SOLIBS= | |
case "$target_os" in | |
cygwin*|mingw*|beos*|haiku*|darwin*|os2-emx*) | |
: ${DLDLIBS=""} | |
;; | |
*) | |
DLDLIBS="$DLDLIBS -lc" | |
;; | |
esac | |
# Check whether --with-soname was given. | |
if test "${with_soname+set}" = set; then | |
withval=$with_soname; RUBY_SO_NAME=$withval | |
else | |
RUBY_SO_NAME='$(RUBY_BASE_NAME)' | |
fi | |
LIBRUBY_LDSHARED=$LDSHARED | |
LIBRUBY_DLDFLAGS=$DLDFLAGS | |
LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR).$(MINOR).$(TEENY)' | |
LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).so' | |
ENABLE_SHARED=no | |
# Check whether --enable-shared was given. | |
if test "${enable_shared+set}" = set; then | |
enableval=$enable_shared; enable_shared=$enableval | |
fi | |
libprefix='$(libdir)' | |
LIBRUBY_RELATIVE=no | |
case "$enable_shared" in | |
yes) | |
LIBRUBY='$(LIBRUBY_SO)' | |
LIBRUBYARG_SHARED='-l$(RUBY_SO_NAME)' | |
LIBRUBYARG='$(LIBRUBYARG_SHARED)' | |
test -z "$CCDLFLAGS" || CFLAGS="$CFLAGS $CCDLFLAGS" | |
ENABLE_SHARED=yes | |
if test "$rb_cv_binary_elf" = yes; then | |
SOLIBS='$(LIBS)' | |
fi | |
if test "$GCC" = yes; then | |
save_LDFLAGS="$LDFLAGS" | |
LDFLAGS="$LDFLAGS -Xlinker --no-undefined" | |
{ echo "$as_me:$LINENO: checking whether -Xlinker --no-undefined is accepted" >&5 | |
echo $ECHO_N "checking whether -Xlinker --no-undefined is accepted... $ECHO_C" >&6; } | |
if test "${ac_c_werror_flag+set}"; then | |
rb_c_werror_flag="$ac_c_werror_flag" | |
else | |
unset rb_c_werror_flag | |
fi | |
ac_c_werror_flag=yes | |
cat >conftest.$ac_ext <<_ACEOF | |
/* confdefs.h. */ | |
_ACEOF | |
cat confdefs.h >>conftest.$ac_ext | |
cat >>conftest.$ac_ext <<_ACEOF | |
/* end confdefs.h. */ | |
int | |
main () | |
{ | |
; | |
return 0; | |
} | |
_ACEOF | |
rm -f conftest.$ac_objext conftest$ac_exeext | |
if { (ac_try="$ac_link" | |
case "(($ac_try" in | |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
*) ac_try_echo=$ac_try;; | |
esac | |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
(eval "$ac_link") 2>conftest.er1 | |
ac_status=$? | |
grep -v '^ *+' conftest.er1 >conftest.err | |
rm -f conftest.er1 | |
cat conftest.err >&5 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
(exit $ac_status); } && { | |
test -z "$ac_c_werror_flag" || | |
test ! -s conftest.err | |
} && test -s conftest$ac_exeext && | |
$as_test_x conftest$ac_exeext; then | |
# RUBY_APPEND_OPTION(EXTLDFLAGS, -Xlinker --no-undefined) | |
case " ${EXTLDFLAGS-} " in | |
*' -Xlinker --no-undefined '* | |
{ echo "$as_me:$LINENO: result: yes" >&5 | |
echo "${ECHO_T}yes" >&6; } | |
else | |
echo "$as_me: failed program was:" >&5 | |
sed 's/^/| /' conftest.$ac_ext >&5 | |
{ echo "$as_me:$LINENO: result: no" >&5 | |
echo "${ECHO_T}no" >&6; } | |
fi | |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
conftest$ac_exeext conftest.$ac_ext | |
if test "${rb_c_werror_flag+set}"; then | |
ac_c_werror_flag="$rb_c_werror_flag" | |
else | |
unset ac_c_werror_flag | |
fi | |
LDFLAGS="$save_LDFLAGS" | |
save_LDFLAGS= | |
: ;; | |
' ') EXTLDFLAGS="-Xlinker --no-undefined" ;; | |
*) EXTLDFLAGS="$EXTLDFLAGS -Xlinker --no-undefined" ;; | |
esac | |
) | |
fi | |
case "$target_os" in | |
sunos4*) | |
LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).so.$(MAJOR).$(MINOR) lib$(RUBY_SO_NAME).so' | |
;; | |
linux* | gnu* | k*bsd*-gnu | atheos* | kopensolaris*-gnu) | |
LIBRUBY_DLDFLAGS='-Wl,-soname,lib$(RUBY_SO_NAME).so.$(MAJOR).$(MINOR)' | |
LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).so.$(MAJOR).$(MINOR) lib$(RUBY_SO_NAME).so' | |
if test "$load_relative" = yes; then | |
LIBRUBY_RPATHFLAGS="'-Wl,-rpath,\$\${ORIGIN}/../lib'" | |
LIBRUBY_RELATIVE=yes | |
fi | |
;; | |
freebsd*|dragonfly*) | |
SOLIBS='$(LIBS)' | |
LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR)' | |
if test "$rb_cv_binary_elf" != "yes" ; then | |
LIBRUBY_SO="$LIBRUBY_SO.\$(TEENY)" | |
LIBRUBY_ALIASES='' | |
fi | |
;; | |
netbsd*) | |
SOLIBS='$(LIBS)' | |
LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR).$(TEENY)' | |
LIBRUBY_DLDFLAGS='-Wl,-soname,lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR)' | |
if test "$rb_cv_binary_elf" = yes; then # ELF platforms | |
LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR) lib$(RUBY_SO_NAME).so' | |
else # a.out platforms | |
LIBRUBY_ALIASES="" | |
fi | |
;; | |
openbsd*) | |
SOLIBS='$(LIBS)' | |
LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR).'`expr ${MINOR} \* 10 + ${TEENY}` | |
;; | |
solaris*) | |
SOLIBS='$(LIBS)' | |
LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)' | |
LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).so.$(MAJOR).$(MINOR).$(TEENY) lib$(RUBY_SO_NAME).so' | |
if test "$GCC" = yes; then | |
LIBRUBY_DLDFLAGS="$DLDFLAGS "'-Wl,-h,$(@F)' | |
else | |
LIBRUBY_DLDFLAGS="$DLDFLAGS "'-h $(@F)' | |
fi | |
XLDFLAGS="$XLDFLAGS "'-R${libdir}' | |
;; | |
hpux*) | |
XLDFLAGS="$XLDFLAGS "'-Wl,+s,+b,$(libdir)' | |
LIBRUBY_SO='lib$(RUBY_SO_NAME).sl.$(MAJOR).$(MINOR).$(TEENY)' | |
LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).sl.$(MAJOR).$(MINOR) lib$(RUBY_SO_NAME).sl' | |
;; | |
aix*) | |
LIBRUBY_DLDFLAGS="${linker_flag}-bnoentry $XLDFLAGS" | |
LIBRUBYARG_SHARED='-L${libdir} -l${RUBY_SO_NAME}' | |
SOLIBS='-lm -lc' | |
;; | |
beos*) | |
case "$target_cpu" in | |
powerpc*) | |
LIBRUBY_DLDFLAGS='-f ruby.exp -lnet -lbe -lroot glue-noinit.a init_term_dyn.o start_dyn.o' | |
;; | |
esac | |
;; | |
darwin*) | |
RUBY_SO_NAME="$RUBY_SO_NAME"'.$(MAJOR).$(MINOR).$(TEENY)' | |
LIBRUBY_LDSHARED='$(CC) -dynamiclib' | |
if test "$load_relative" = yes; then | |
libprefix='@executable_path/../lib' | |
LIBRUBY_RELATIVE=yes | |
fi | |
LIBRUBY_DLDFLAGS="$LIBRUBY_DLDFLAGS "'-install_name '${libprefix}'/$(LIBRUBY_SO)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment