From c6561e39f2358715dad2aae557b34dfd51385d61 Mon Sep 17 00:00:00 2001 From: mycroft Date: Fri, 31 Oct 1997 12:26:33 +0000 Subject: Slight fix to the shared library linking command. XXX This doesn't work for ELF/binutils. --- graphics/jpeg/patches/patch-aa | 2 +- graphics/png/patches/patch-aa | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'graphics') diff --git a/graphics/jpeg/patches/patch-aa b/graphics/jpeg/patches/patch-aa index 734d06528aa..3f4c6e14365 100644 --- a/graphics/jpeg/patches/patch-aa +++ b/graphics/jpeg/patches/patch-aa @@ -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) diff --git a/graphics/png/patches/patch-aa b/graphics/png/patches/patch-aa index b791d782b80..2debf6a93f4 100644 --- a/graphics/png/patches/patch-aa +++ b/graphics/png/patches/patch-aa @@ -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 -- cgit v1.2.3