openbsd-ports/archivers/p7zip/patches/patch-makefile_openbsd
sthen 1f9324de36 update to 4.58 and fix homepage, from maintainer Josh Grosse with
tweaks by me. Changelog notes speed optimizations, bug fixes, utf8
support for .zip filenames, .lzma unpack added.
2008-06-10 03:24:37 +00:00

30 lines
940 B
Plaintext

$OpenBSD: patch-makefile_openbsd,v 1.2 2008/06/10 03:24:38 sthen Exp $
--- makefile.openbsd.orig Wed Aug 8 05:15:29 2007
+++ makefile.openbsd Sun Jun 8 11:50:18 2008
@@ -2,17 +2,17 @@
# makefile for OpenBSD (x86, PPC, alpha ...)
#
-OPTFLAGS=-O
+MYCFLAGS?=-O
+MYCXXFLAGS?=-O
-ALLFLAGS=${OPTFLAGS} -s \
- -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
- -DNDEBUG -D_REENTRANT -DENV_UNIX \
+ALLFLAGS=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
+ -DNDEBUG -D_REENTRANT -DENV_UNIX -fPIC \
$(LOCAL_FLAGS)
-
-CXX=g++ $(ALLFLAGS)
-CC=gcc $(ALLFLAGS)
+
+CXX=$(MYCXX) $(ALLFLAGS) $(MYCXXFLAGS)
+CC=$(MYCC) $(ALLFLAGS) $(MYCFLAGS)
LINK_SHARED=-shared
-
+
LOCAL_LIBS=-lpthread
LOCAL_LIBS_DLL=$(LOCAL_LIBS)