@@ -275,25 +275,25 @@ dnl
275
275
dnl Checks for -R, etc. switch.
276
276
dnl
277
277
AC_DEFUN ( [ PHP_RUNPATH_SWITCH] ,[
278
- AC_MSG_CHECKING ( [ if compiler supports -R ] )
279
- AC_CACHE_VAL ( php_cv_cc_dashr ,[
278
+ AC_MSG_CHECKING ( [ if compiler supports -Wl,-rpath, ] )
279
+ AC_CACHE_VAL ( php_cv_cc_rpath ,[
280
280
SAVE_LIBS=$LIBS
281
- LIBS="-R /usr/$PHP_LIBDIR $LIBS"
282
- AC_LINK_IFELSE ( [ AC_LANG_PROGRAM ( [ ] , [ ] ) ] ,[ php_cv_cc_dashr =yes] ,[ php_cv_cc_dashr =no] )
281
+ LIBS="-Wl,-rpath, /usr/$PHP_LIBDIR $LIBS"
282
+ AC_LINK_IFELSE ( [ AC_LANG_PROGRAM ( [ ] , [ ] ) ] ,[ php_cv_cc_rpath =yes] ,[ php_cv_cc_rpath =no] )
283
283
LIBS=$SAVE_LIBS] )
284
- AC_MSG_RESULT ( [ $php_cv_cc_dashr ] )
285
- if test $php_cv_cc_dashr = "yes"; then
286
- ld_runpath_switch=-R
284
+ AC_MSG_RESULT ( [ $php_cv_cc_rpath ] )
285
+ if test $php_cv_cc_rpath = "yes"; then
286
+ ld_runpath_switch=-Wl,-rpath,
287
287
else
288
- AC_MSG_CHECKING ( [ if compiler supports -Wl,-rpath, ] )
289
- AC_CACHE_VAL ( php_cv_cc_rpath ,[
288
+ AC_MSG_CHECKING ( [ if compiler supports -R ] )
289
+ AC_CACHE_VAL ( php_cv_cc_dashr ,[
290
290
SAVE_LIBS=$LIBS
291
- LIBS="-Wl,-rpath, /usr/$PHP_LIBDIR $LIBS"
292
- AC_LINK_IFELSE ( [ AC_LANG_PROGRAM ( [ ] , [ ] ) ] ,[ php_cv_cc_rpath =yes] ,[ php_cv_cc_rpath =no] )
291
+ LIBS="-R /usr/$PHP_LIBDIR $LIBS"
292
+ AC_LINK_IFELSE ( [ AC_LANG_PROGRAM ( [ ] , [ ] ) ] ,[ php_cv_cc_dashr =yes] ,[ php_cv_cc_dashr =no] )
293
293
LIBS=$SAVE_LIBS] )
294
- AC_MSG_RESULT ( [ $php_cv_cc_rpath ] )
295
- if test $php_cv_cc_rpath = "yes"; then
296
- ld_runpath_switch=-Wl,-rpath,
294
+ AC_MSG_RESULT ( [ $php_cv_cc_dashr ] )
295
+ if test $php_cv_cc_dashr = "yes"; then
296
+ ld_runpath_switch=-R
297
297
else
298
298
dnl Something innocuous.
299
299
ld_runpath_switch=-L
0 commit comments