diff options
author | tron <tron@pkgsrc.org> | 2002-05-14 18:03:17 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2002-05-14 18:03:17 +0000 |
commit | 45e2108b3980276ba4e0bef0009964b282c8d1e9 (patch) | |
tree | 58e0dbdf3ea6db3948c70cdf0cf609703639bcbf /graphics/netpbm/patches/patch-aa | |
parent | f7fd956149a81678656e0ad35966e4eadf37efaf (diff) | |
download | pkgsrc-45e2108b3980276ba4e0bef0009964b282c8d1e9.tar.gz |
Fix build problems on older "a.out" system. Based on patches supplied by
Greg A. Woods in PR pkg/16030.
Diffstat (limited to 'graphics/netpbm/patches/patch-aa')
-rw-r--r-- | graphics/netpbm/patches/patch-aa | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/graphics/netpbm/patches/patch-aa b/graphics/netpbm/patches/patch-aa index 8a88d040f01..b0dbb607dfb 100644 --- a/graphics/netpbm/patches/patch-aa +++ b/graphics/netpbm/patches/patch-aa @@ -1,7 +1,7 @@ -$NetBSD: patch-aa,v 1.18 2002/05/06 11:46:22 tron Exp $ +$NetBSD: patch-aa,v 1.19 2002/05/14 18:03:18 tron Exp $ --- Makefile.config.in.orig Thu Mar 14 16:25:54 2002 -+++ Makefile.config.in Mon Apr 29 17:19:59 2002 ++++ Makefile.config.in Tue May 14 19:52:32 2002 @@ -33,7 +33,7 @@ #Tru64 (= Digital Unix): #CC = cc @@ -20,6 +20,15 @@ $NetBSD: patch-aa,v 1.18 2002/05/06 11:46:22 tron Exp $ #Solaris: #INSTALL = /usr/ucb/install #Tru64: +@@ -64,7 +64,7 @@ + + # STRIPFLAG is the option you pass to the above install program to make it + # strip unnecessary information out of binaries. +-STRIPFLAG = -s ++#STRIPFLAG = -s + # If you don't want to strip the binaries, just leave it null: + #STRIPFLAG = + @@ -137,10 +137,10 @@ # the directory information in the executable at link time. @@ -34,7 +43,7 @@ $NetBSD: patch-aa,v 1.18 2002/05/06 11:46:22 tron Exp $ # Eunice users may want to use -noshare so that the executables can # run standalone: #LDFLAGS = -noshare -@@ -156,9 +156,9 @@ +@@ -156,16 +156,16 @@ ifeq ($(NEED_RUNTIME_PATH),Y) #If the linker is gcc (e.g. NetBSD): @@ -46,6 +55,14 @@ $NetBSD: patch-aa,v 1.18 2002/05/06 11:46:22 tron Exp $ endif # Linker options for created Netpbm shared libraries. + + # Here, $(SONAME) resolves to the soname for the shared library being created. + # The following are gcc options. This works on GNU libc systems. +-LDSHLIB = -shared -Wl,-soname,$(SONAME) ++LDSHLIB = -nostdlib -shared -Wl,-Bshareable,-soname,$(SONAME) + # You need -nostart instead of -shared on BeOS. Though the BeOS compiler is + # ostensibly gcc, it has the -nostart option, which is not mentioned in gcc + # documentation and doesn't exist in at least one non-BeOS installation. @@ -180,11 +180,15 @@ #Tru64: #LDSHLIB = -shared -expect_unresolved "*" |