bug-7737.diff

Nobuyoshi Nakada, 01/25/2013 03:43 PM

Download (918 Bytes)

View differences:

configure.in
2206 2206
       AS_HELP_STRING([--enable-rpath], [embed run path into extension libraries.
2207 2207
       enabled by default on ELF platforms]),
2208 2208
       [enable_rpath=$enableval], [enable_rpath="$rb_cv_binary_elf"])
2209
  if test "$enable_rpath" = yes; then
2210
    RPATHFLAG=" ${linker_flag}-R%1\$-s"
2211
  fi
2212 2209

  
2213 2210
  AS_CASE(["$target_os"],
2214 2211
	[hpux*], [	DLDFLAGS="$DLDFLAGS -E"
......
2338 2335
        [nacl], [ LDSHARED='$(CC) -shared' ],
2339 2336
	[ 	: ${LDSHARED='$(LD)'}])
2340 2337
  AC_MSG_RESULT($rb_cv_dlopen)
2338

  
2339
  if test "$enable_rpath" = yes; then
2340
    AS_CASE(["${LDSHARED}"],
2341
	[ld" "*], [RPATHFLAG=" -R%1\$-s"],
2342
	[RPATHFLAG=" ${linker_flag}-R%1\$-s"])
2343
  fi
2341 2344
fi
2342 2345
if test "${LDSHAREDXX}" = ""; then
2343 2346
    AS_CASE(["${LDSHARED}"],