Only use -soname flag if building for an ELF world.

Noticed by:	smace
This commit is contained in:
Steve Price 1998-09-22 18:40:36 +00:00
parent 39dd71f414
commit db84801dd5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=13327

View File

@ -1,11 +1,15 @@
--- configure.orig Tue Nov 25 10:31:42 1997
+++ configure Wed Sep 16 21:30:16 1998
@@ -3782,14 +3782,18 @@
+++ configure Tue Sep 22 13:29:15 1998
@@ -3782,14 +3782,22 @@
echo "$ac_t""yes" 1>&6
SHLIB_CFLAGS="-fpic"
- SHLIB_LD="ld -Bshareable -x"
+ SHLIB_LD="ld -Bshareable -x -soname \$@"
+ if [ "$PORTOBJFORMAT" = "elf" ]; then
+ SHLIB_LD="ld -shared -x -soname \$@"
+ else
+ SHLIB_LD="ld -Bshareable -x"
+ fi
SHLIB_LD_LIBS=""
SHLIB_SUFFIX=".so"
DL_OBJS="tclLoadDl.o"