summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authormycroft <mycroft>1997-10-31 12:26:33 +0000
committermycroft <mycroft>1997-10-31 12:26:33 +0000
commitc6561e39f2358715dad2aae557b34dfd51385d61 (patch)
tree633e60bea708c6d5eebdfb0d730dad9d840d1043 /graphics
parentd31345afd0232ae892354f925606df67310915f9 (diff)
downloadpkgsrc-c6561e39f2358715dad2aae557b34dfd51385d61.tar.gz
Slight fix to the shared library linking command.
XXX This doesn't work for ELF/binutils.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/jpeg/patches/patch-aa2
-rw-r--r--graphics/png/patches/patch-aa2
2 files changed, 2 insertions, 2 deletions
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