diff options
| author | Paul Park <pjpark@mit.edu> | 1995-06-15 22:34:56 +0000 |
|---|---|---|
| committer | Paul Park <pjpark@mit.edu> | 1995-06-15 22:34:56 +0000 |
| commit | b3e348a072ba88a2ae1b28ed58dc0b5249b9cb91 (patch) | |
| tree | 40f4f5b31ddbca1f791d2f080e3da04cf3bcc109 /src/util | |
| parent | 821ce16c47b36ff3f947fbe0773114bf5bdafc59 (diff) | |
| download | krb5-b3e348a072ba88a2ae1b28ed58dc0b5249b9cb91.tar.gz krb5-b3e348a072ba88a2ae1b28ed58dc0b5249b9cb91.tar.xz krb5-b3e348a072ba88a2ae1b28ed58dc0b5249b9cb91.zip | |
Shared library Makefile/configure changes and cleanup
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6069 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/util')
| -rw-r--r-- | src/util/ChangeLog | 5 | ||||
| -rw-r--r-- | src/util/makeshlib | 19 |
2 files changed, 19 insertions, 5 deletions
diff --git a/src/util/ChangeLog b/src/util/ChangeLog index 4697e338d..04d007440 100644 --- a/src/util/ChangeLog +++ b/src/util/ChangeLog @@ -1,3 +1,8 @@ + +Thu Jun 15 18:14:46 EDT 1995 Paul Park (pjpark@mit.edu) + * makeshlib - Add arguments for library search directories, library + lists and flags to link with. + Fri Jun 9 18:59:02 1995 <tytso@rsx-11.mit.edu> * configure.in: Remove standardized set of autoconf macros, which diff --git a/src/util/makeshlib b/src/util/makeshlib index 01f464f0a..eae351bc6 100644 --- a/src/util/makeshlib +++ b/src/util/makeshlib @@ -2,12 +2,16 @@ # # makeshlib: Make a shared library..... # -# Usage: makeshlib <host> <CC> <library> <directories> +# Usage: makeshlib <host> <CC> <library> <libdirfl> <liblist> <flags> \ +# <directories> # host=$1 ; shift CC=$1 ; shift library=$1 ; shift +libdirfl=$1; shift +liblist=$1; shift +ldflags=$1; shift case $host in *-*-solaris*) @@ -16,8 +20,9 @@ case $host in sed -e "s;^;$i/shared/;" -e "s; ; $i/shared/;g" $i/DONE done` - echo $CC -G -o $library $FILES - $CC -G -o $library $FILES + echo $CC -G $ldflags -o $library $FILES $libdirfl $liblist + $CC -G $ldflags -o $library $FILES $libdirfl $liblist + stat=$? ;; alpha-*-osf*) FILES=`for i @@ -26,11 +31,15 @@ alpha-*-osf*) done` - echo ld -shared -o $library -all $FILES -none -lc -update_registry ../../so_locations - ld -shared -o $library -all $FILES -none -lc -update_registry ../../so_locations + echo ld -shared -error_unresolved $ldflags -o $library -all $FILES $libdirfl $liblist -none -lc -update_registry ../../so_locations + ld -shared -error_unresolved $ldflags -o $library -all $FILES $libdirfl $liblist -none -lc -update_registry ../../so_locations + stat=$? + echo status is $stat ;; *) echo "Host type $host not supported!" exit 1 esac +exit $stat + |
