From 822edab3a8884a8098df757e8c697b9ab21d2c85 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Mon, 9 Oct 1995 23:02:28 +0000 Subject: [PATCH] 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 --- src/util/ChangeLog | 5 +++++ src/util/makeshlib.sh | 3 +++ 2 files changed, 8 insertions(+) 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 + + * makeshlib.sh: For NetBSD convert flags designed for cc to ones + for ld. + Mon Oct 2 12:12:20 1995 Ezra Peisach * 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=$? -- 2.26.2