diff options
author | jlam <jlam@pkgsrc.org> | 2001-07-15 16:52:02 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-07-15 16:52:02 +0000 |
commit | afcc2a261c53c8447866c22d8e8d4a92395ff9df (patch) | |
tree | 3b42016a355ad8b74ec5f2d5f7b73755ffdce2cb /security/zebedee/patches | |
parent | fafbbeca6b3698e54a6c10e61b500fb65cceeab6 (diff) | |
download | pkgsrc-afcc2a261c53c8447866c22d8e8d4a92395ff9df.tar.gz |
Pass LDFLAGS through to link step so that zebedee gets the right rpath
for systems where the dependent libraries aren't part of the base system.
Don't include tcl/buildlink.mk as the libraries aren't required for the
build -- only the tclsh binary is required at run-time. Also honor CFLAGS
passed in from environment during the build.
Diffstat (limited to 'security/zebedee/patches')
-rw-r--r-- | security/zebedee/patches/patch-aa | 42 |
1 files changed, 17 insertions, 25 deletions
diff --git a/security/zebedee/patches/patch-aa b/security/zebedee/patches/patch-aa index c9d3ccf78e2..9a969a3e635 100644 --- a/security/zebedee/patches/patch-aa +++ b/security/zebedee/patches/patch-aa @@ -1,8 +1,8 @@ -$NetBSD: patch-aa,v 1.2 2001/07/15 15:51:12 taca Exp $ +$NetBSD: patch-aa,v 1.3 2001/07/15 16:52:02 jlam Exp $ ---- Makefile.orig Sat Apr 14 02:41:22 2001 +--- Makefile.orig Fri Apr 13 13:41:22 2001 +++ Makefile -@@ -18,13 +18,13 @@ +@@ -18,13 +18,14 @@ CC_linux = gcc -pthread CC_solaris = gcc CC_freebsd = gcc -pthread @@ -12,13 +12,13 @@ $NetBSD: patch-aa,v 1.2 2001/07/15 15:51:12 taca Exp $ # Optimise/debug compilation --#OPTIM = -Wall -g + #OPTIM = -Wall -g -OPTIM = -O3 -+OPTIM = -Wall -O2 ++#OPTIM = -O3 # Location of gmp include and library # -@@ -36,19 +36,19 @@ +@@ -36,19 +37,19 @@ # Location of Blowfish include and library @@ -44,7 +44,7 @@ $NetBSD: patch-aa,v 1.2 2001/07/15 15:51:12 taca Exp $ # # Tools needed for Perl "POD"-format documentation conversion. -@@ -62,9 +62,9 @@ +@@ -62,9 +63,9 @@ # Installation directories for the Linux/Solaris/*NIX World @@ -56,7 +56,7 @@ $NetBSD: patch-aa,v 1.2 2001/07/15 15:51:12 taca Exp $ MANDIR = $(ROOTDIR)/man/man1 # This is a BSD-style install -@@ -74,6 +74,7 @@ +@@ -74,6 +75,7 @@ INSTALL_linux = install -c INSTALL_solaris = /usr/ucb/install -c INSTALL_freebsd = install -c @@ -64,7 +64,7 @@ $NetBSD: patch-aa,v 1.2 2001/07/15 15:51:12 taca Exp $ INSTALL_tru64 = installbsd -c INSTALL = $(INSTALL_$(OS)) -@@ -104,6 +105,7 @@ +@@ -104,6 +106,7 @@ DEFINES_linux = -DHAVE_PTHREADS DEFINES_solaris = -D_REENTRANT -DHAVE_PTHREADS DEFINES_freebsd = -DHAVE_PTHREADS -DBUGGY_FORK_WITH_THREADS @@ -72,7 +72,7 @@ $NetBSD: patch-aa,v 1.2 2001/07/15 15:51:12 taca Exp $ DEFINES_tru64 = -D_REENTRANT -DHAVE_PTHREADS DEFINES = $(DEFINES_$(OS)) -@@ -118,6 +120,7 @@ +@@ -118,6 +121,7 @@ OSLIBS_linux = -lpthread OSLIBS_solaris = -lsocket -lnsl -lthread OSLIBS_freebsd = @@ -80,19 +80,7 @@ $NetBSD: patch-aa,v 1.2 2001/07/15 15:51:12 taca Exp $ OSLIBS_tru64 = -lpthread OSLIBS = $(OSLIBS_$(OS)) -@@ -133,9 +136,9 @@ - #### You REALLY shouldn't have to modify anything beyond here ... - #### - --CFLAGS = $(OPTIM) $(DEFINES) -I. $(GMPINC) $(BFINC) $(ZINC) $(BZINC) -+CFLAGS = $(OPTIM) $(DEFINES) -I. -I${BUILDLINK_DIR}/include $(GMPINC) - --LIBS = $(GMPLIB) $(BFLIB) $(ZLIB) $(BZLIB) $(OSLIBS) -+LIBS = -L${BUILDLINK_DIR}/lib $(GMPLIB) $(BFLIB) $(ZLIB) $(BZLIB) $(OSLIBS) - - OBJS = zebedee.o sha_func.o huge.o $(GETOPTOBJ) $(SERVICEOBJ) - -@@ -150,7 +153,7 @@ +@@ -150,10 +154,10 @@ all : precheck zebedee$(EXE) zebedee.1 zebedee.html ftpgw.tcl.1 ftpgw.tcl.html zebedee.ja_JP.html precheck : @@ -100,8 +88,12 @@ $NetBSD: patch-aa,v 1.2 2001/07/15 15:51:12 taca Exp $ + @ if test -z "$(OS)"; then echo "Use '$(MAKE) OS=xxx' where xxx is win32, linux, solaris, freebsd, netbsd or tru64"; exit 1; fi zebedee$(EXE) : $(OBJS) - $(CC) $(CFLAGS) -o zebedee$(EXE) $(OBJS) $(LIBS) -@@ -182,12 +185,12 @@ +- $(CC) $(CFLAGS) -o zebedee$(EXE) $(OBJS) $(LIBS) ++ $(CC) $(LDFLAGS) -o zebedee$(EXE) $(OBJS) $(LIBS) + + huge.o : huge.h + +@@ -182,12 +186,12 @@ install : precheck zebedee$(EXE) zebedee.1 ftpgw.tcl.1 $(ZBDFILES) $(TXTFILES) -mkdir -p $(BINDIR) $(MANDIR) $(ZBDDIR) |