diff options
Diffstat (limited to 'src/util/makeshlib')
-rw-r--r-- | src/util/makeshlib | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/src/util/makeshlib b/src/util/makeshlib index 01f464f..eae351b 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 + |