summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEzra Peisach <epeisach@mit.edu>1995-10-09 23:02:28 +0000
committerEzra Peisach <epeisach@mit.edu>1995-10-09 23:02:28 +0000
commit822edab3a8884a8098df757e8c697b9ab21d2c85 (patch)
tree9a80d5800de784f2c52e89191354175bf874f199
parent978f0da6e93e2922bb4383abae2c5b9889d9967f (diff)
downloadkrb5-822edab3a8884a8098df757e8c697b9ab21d2c85.tar.gz
krb5-822edab3a8884a8098df757e8c697b9ab21d2c85.tar.xz
krb5-822edab3a8884a8098df757e8c697b9ab21d2c85.zip
For NetBSD convert flags designed for cc to those used by ld
(in particular those dealing with library paths) NetBSD requires that the path be stored in the library and the executables. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6952 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r--src/util/ChangeLog5
-rw-r--r--src/util/makeshlib.sh3
2 files changed, 8 insertions, 0 deletions
diff --git a/src/util/ChangeLog b/src/util/ChangeLog
index 1b0dc0dbb..4172777b8 100644
--- a/src/util/ChangeLog
+++ b/src/util/ChangeLog
@@ -1,3 +1,8 @@
+Mon Oct 9 19:00:13 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
+
+ * makeshlib.sh: For NetBSD convert flags designed for cc to ones
+ for ld.
+
Mon Oct 2 12:12:20 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
* makeshlib.sh: For solaris, if you are not using gcc, add the -h
diff --git a/src/util/makeshlib.sh b/src/util/makeshlib.sh
index 4caa55ecc..5a8fb7f8b 100644
--- a/src/util/makeshlib.sh
+++ b/src/util/makeshlib.sh
@@ -21,6 +21,9 @@ case $host in
do
sed -e "s;^;$i/shared/;" -e "s; ; $i/shared/;g" -e "s;^$i/shared/\$;;" $i/DONE
done`
+ # Hack to deal with the fact that with cc options are different
+ # from ld...
+ ldflags=`echo $ldflags |sed -e "s/-Wl,//g"`
echo ld -Bshareable $ldflags -o $library $FILES $libdirfl $liblist
ld -Bshareable $ldflags -o $library $FILES $libdirfl $liblist
stat=$?