summaryrefslogtreecommitdiffstats
path: root/src/config/shlib.conf
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>2001-05-11 02:14:03 +0000
committerTom Yu <tlyu@mit.edu>2001-05-11 02:14:03 +0000
commit6b80b42bdbdfce6d8a55732898d33a4fd3ca819a (patch)
treec27486c1016ddf22ec6f2d17d3a1b375e389bd8b /src/config/shlib.conf
parentd84339bed1350e13a02edf83bd1a8624dd889188 (diff)
downloadkrb5-6b80b42bdbdfce6d8a55732898d33a4fd3ca819a.tar.gz
krb5-6b80b42bdbdfce6d8a55732898d33a4fd3ca819a.tar.xz
krb5-6b80b42bdbdfce6d8a55732898d33a4fd3ca819a.zip
* shlib.conf: Fix RUN_ENV for Irix. [pulled up from 1.2.2]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13238 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/config/shlib.conf')
-rw-r--r--src/config/shlib.conf20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/config/shlib.conf b/src/config/shlib.conf
index 49a617e11..bae060e48 100644
--- a/src/config/shlib.conf
+++ b/src/config/shlib.conf
@@ -78,7 +78,15 @@ mips-sgi-irix6.3) # This is a Kludge; see below
PROFFLAGS=-p
CC_LINK_SHARED='$(CC) $(PROG_LIBPATH) -Wl,-rpath -Wl,$(PROG_RPATH)'
CC_LINK_STATIC='$(CC) $(PROG_LIBPATH)'
- RUN_ENV='LD_LIBRARY_PATH=`echo $(PROG_LIBPATH) | sed -e "s/-L//g" -e "s/ /:/g"`; export LD_LIBRARY_PATH;'
+ # This grossness is necessary due to the presence of *three*
+ # supported ABIs on Irix, and the precedence of the rpath over
+ # LD_LIBRARY*_PATH. Like OSF/1, _RLD*_ROOT needs to be set to
+ # work around this lossage.
+ add='`echo $(PROG_LIBPATH) | sed -e "s/-L//g" -e "s/ /:/g"`'
+ dummy=/dev/dummmy/d
+ # Set the N32 and 64 variables first because the unqualified
+ # variables affect all three and can cause the sed command to fail.
+ RUN_ENV="LD_LIBRARYN32_PATH=$add:/usr/lib32:/usr/lib32/internal:/lib32:/opt/lib32; export LD_LIBRARYN32_PATH; _RLDN32_ROOT=$dummy; export _RLDN32_ROOT; LD_LIBRARY64_PATH=$add:/usr/lib64:/usr/lib64/internal:/lib64:/opt/lib64; export LD_LIBRARY64_PATH; _RLD64_ROOT=$dummy; export _RLD64_ROOT; LD_LIBRARY_PATH=$add:/usr/lib:/usr/lib/internal:/lib:/lib/cmplrs/cc:/usr/lib/cmplrs/cc:/opt/lib; export LD_LIBRARY_PATH; _RLD_ROOT=$dummy; export _RLD_ROOT;"
;;
mips-sgi-irix*)
@@ -92,7 +100,15 @@ mips-sgi-irix*)
PROFFLAGS=-p
CC_LINK_SHARED='$(CC) $(PROG_LIBPATH) -Wl,-rpath -Wl,$(PROG_RPATH)'
CC_LINK_STATIC='$(CC) $(PROG_LIBPATH)'
- RUN_ENV='LD_LIBRARY_PATH=`echo $(PROG_LIBPATH) | sed -e "s/-L//g" -e "s/ /:/g"`; export LD_LIBRARY_PATH;'
+ # This grossness is necessary due to the presence of *three*
+ # supported ABIs on Irix, and the precedence of the rpath over
+ # LD_LIBRARY*_PATH. Like OSF/1, _RLD*_ROOT needs to be set to
+ # work around this lossage.
+ add='`echo $(PROG_LIBPATH) | sed -e "s/-L//g" -e "s/ /:/g"`'
+ dummy=/dev/dummmy/d
+ # Set the N32 and 64 variables first because the unqualified
+ # variables affect all three and can cause the sed command to fail.
+ RUN_ENV="LD_LIBRARYN32_PATH=$add:/usr/lib32:/usr/lib32/internal:/lib32:/opt/lib32; export LD_LIBRARYN32_PATH; _RLDN32_ROOT=$dummy; export _RLDN32_ROOT; LD_LIBRARY64_PATH=$add:/usr/lib64:/usr/lib64/internal:/lib64:/opt/lib64; export LD_LIBRARY64_PATH; _RLD64_ROOT=$dummy; export _RLD64_ROOT; LD_LIBRARY_PATH=$add:/usr/lib:/usr/lib/internal:/lib:/lib/cmplrs/cc:/usr/lib/cmplrs/cc:/opt/lib; export LD_LIBRARY_PATH; _RLD_ROOT=$dummy; export _RLD_ROOT;"
;;
# untested...