aboutsummaryrefslogtreecommitdiff
path: root/gprof/configure.in
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-08-23 00:13:54 +0000
committerIan Lance Taylor <ian@airs.com>1996-08-23 00:13:54 +0000
commitcb26c22dedc0cdaa3c7e70d5e9ce15ccd0ce8716 (patch)
treea27c9e3559da21aab7f9b37401e29a2c17da458f /gprof/configure.in
parent8ee90d359b7b02c911b3f49c5c1d883af1647023 (diff)
downloadfsf-binutils-gdb-cb26c22dedc0cdaa3c7e70d5e9ce15ccd0ce8716.zip
fsf-binutils-gdb-cb26c22dedc0cdaa3c7e70d5e9ce15ccd0ce8716.tar.gz
fsf-binutils-gdb-cb26c22dedc0cdaa3c7e70d5e9ce15ccd0ce8716.tar.bz2
* configure.in: Set and substitute HLDENV.
* configure: Rebuild. * Makefile.in (HLDENV): New variable. (gprof): Use $(HLDENV).
Diffstat (limited to 'gprof/configure.in')
-rw-r--r--gprof/configure.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/gprof/configure.in b/gprof/configure.in
index 21409d5..82fde9c 100644
--- a/gprof/configure.in
+++ b/gprof/configure.in
@@ -60,6 +60,7 @@ esac
AC_SUBST(BFDLIB)
HLDFLAGS=
+HLDENV=
# If we have shared libraries, try to set rpath reasonably.
if test "${shared}" = "true"; then
case "${host}" in
@@ -74,9 +75,12 @@ if test "${shared}" = "true"; then
*-*-linux*)
HLDFLAGS='-Wl,-rpath,$(libdir)'
;;
- *-*-sysv4* | *-*-solaris*)
+ *-*-solaris*)
HLDFLAGS='-R $(libdir)'
;;
+ *-*-sysv4*)
+ HLDENV='if test -z "$${LD_RUN_PATH}"; then LD_RUN_PATH=$(libdir); else LD_RUN_PATH=$${LD_RUN_PATH}:$(libdir); fi; export LD_RUN_PATH;'
+ ;;
esac
fi
@@ -102,5 +106,6 @@ case "${host}" in
;;
esac
AC_SUBST(HLDFLAGS)
+AC_SUBST(HLDENV)
AC_OUTPUT(Makefile)