aboutsummaryrefslogtreecommitdiff
path: root/gprof/configure
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
parent8ee90d359b7b02c911b3f49c5c1d883af1647023 (diff)
downloadgdb-cb26c22dedc0cdaa3c7e70d5e9ce15ccd0ce8716.zip
gdb-cb26c22dedc0cdaa3c7e70d5e9ce15ccd0ce8716.tar.gz
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')
-rwxr-xr-xgprof/configure8
1 files changed, 7 insertions, 1 deletions
diff --git a/gprof/configure b/gprof/configure
index e1aed82..d032cd0 100755
--- a/gprof/configure
+++ b/gprof/configure
@@ -894,6 +894,7 @@ esac
HLDFLAGS=
+HLDENV=
# If we have shared libraries, try to set rpath reasonably.
if test "${shared}" = "true"; then
case "${host}" in
@@ -908,9 +909,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
@@ -937,6 +941,7 @@ case "${host}" in
esac
+
trap '' 1 2 15
cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
@@ -1087,6 +1092,7 @@ s%@build_os@%$build_os%g
s%@MY_TARGET@%$MY_TARGET%g
s%@BFDLIB@%$BFDLIB%g
s%@HLDFLAGS@%$HLDFLAGS%g
+s%@HLDENV@%$HLDENV%g
CEOF
EOF