Slight fix to the shared library linking command.

XXX This doesn't work for ELF/binutils.
This commit is contained in:
mycroft 1997-10-31 12:26:33 +00:00
parent 8612756bd9
commit 3eb532a5e1
2 changed files with 2 additions and 2 deletions

View file

@ -52,7 +52,7 @@
$(AR2) libjpeg.a
! libjpeg.so.7.0: @ANSI2KNR@ $(LIBOBJECTS:S/o$/so/g)
! ld -Bshareable -o libjpeg.so.7.0 $(LIBOBJECTS:S/o$/so/g)
! ld -x -Bshareable -Bforcearchive -o libjpeg.so.7.0 $(LIBOBJECTS:S/o$/so/g)
!
! cjpeg: $(COBJECTS) libjpeg.so.7.0
! $(LN) $(LDFLAGS) -o cjpeg $(COBJECTS) -L. -ljpeg $(LDLIBS)

View file

@ -41,7 +41,7 @@
$(RANLIB) $@
+libpng.so.${VER}: $(OBJS:S/o$/so/g)
+ ${LD} -Bshareable -o libpng.so.${VER} $(OBJS:S/o$/so/g)
+ ${LD} -x -Bshareable -Bforcearchive -o libpng.so.${VER} $(OBJS:S/o$/so/g)
+
+# XXX - agc - weird shared library load line
+# ${CC} -shared -Wl,-x -Wl,-assert -Wl,pure-text -o $@ $(OBJS:S/o$/so/g) -lz