Replace `-shared' with some other option when not using gcc.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@695 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1996-08-30 00:51:45 +00:00
parent 3c3ee0aa53
commit 2c1490bd39
3 changed files with 6 additions and 6 deletions

View File

@@ -26,6 +26,7 @@ PICFLAGS = @PICFLAGS@
LIBNAME = libkafs
LIBEXT = @LIBEXT@
SHLIBEXT = @SHLIBEXT@
SHARED = @SHARED@
AFS_EXTRA_LIBS = @AFS_EXTRA_LIBS@
LIB = $(LIBNAME).$(LIBEXT) $(AFS_EXTRA_LIBS)
@@ -78,7 +79,7 @@ $(LIBNAME).a: $(OBJECTS) @AFS_EXTRA_OBJS@
$(LIBNAME).$(SHLIBEXT): $(OBJECTS)
rm -f $@
$(CC) $(CFLAGS) $(PICFLAGS) -shared -o $@ $(OBJECTS)
$(CC) $(CFLAGS) $(PICFLAGS) $(SHARED) -o $@ $(OBJECTS)
# AIX: this almost works with gcc, but somehow it fails to use the
# correct ld, use ld instead