Project

General

Profile

Bug #7737 » bug-7737.diff

nobu (Nobuyoshi Nakada), 01/25/2013 03:43 PM

View differences:

configure.in
AS_HELP_STRING([--enable-rpath], [embed run path into extension libraries.
enabled by default on ELF platforms]),
[enable_rpath=$enableval], [enable_rpath="$rb_cv_binary_elf"])
if test "$enable_rpath" = yes; then
RPATHFLAG=" ${linker_flag}-R%1\$-s"
fi
AS_CASE(["$target_os"],
[hpux*], [ DLDFLAGS="$DLDFLAGS -E"
......
[nacl], [ LDSHARED='$(CC) -shared' ],
[ : ${LDSHARED='$(LD)'}])
AC_MSG_RESULT($rb_cv_dlopen)
if test "$enable_rpath" = yes; then
AS_CASE(["${LDSHARED}"],
[ld" "*], [RPATHFLAG=" -R%1\$-s"],
[RPATHFLAG=" ${linker_flag}-R%1\$-s"])
fi
fi
if test "${LDSHAREDXX}" = ""; then
AS_CASE(["${LDSHARED}"],
(1-1/2)