* Makefile.in (RPATH_ENVVAR): New variable.
authorIan Lance Taylor <ian@airs.com>
Tue, 13 Feb 1996 19:29:03 +0000 (19:29 +0000)
committerIan Lance Taylor <ian@airs.com>
Tue, 13 Feb 1996 19:29:03 +0000 (19:29 +0000)
(REALLY_SET_LIB_PATH): Use it.
* configure.in: On HP/UX, set RPATH_ENVVAR to SHLIB_PATH.

configure.in

index 49198e79d1e3d76a5fe3a0dc57e604ec5eb5403e..54b350f5f9bd9a648a8e8746c832a4b2c4c1437d 100644 (file)
@@ -717,6 +717,15 @@ if [ "${enable_shared}" = "yes" ]; then
       Makefile > Makefile.tem
   rm -f Makefile
   mv -f Makefile.tem Makefile
+
+  case "${host}" in
+  *-*-hpux*)
+    sed -e 's/RPATH_ENVVAR[    ]*=.*$/RPATH_ENVVAR = SHLIB_PATH/' \
+       Makefile > Makefile.tem
+    rm -f Makefile
+    mv -f Makefile.tem Makefile
+    ;;
+  esac
 fi
 
 # Record target_configdirs and the configure arguments in Makefile.