a2610717e5
p7zip is a port of 7-zip for *nix platforms. 7-zip is a file archiver with a high compression ratio. from Josh Grosse <josh at jggimi.homeip.net> and Stuart Henderson <stu at spacehopper.org> with testing, feedback, and ok from naddy@
30 lines
973 B
Plaintext
30 lines
973 B
Plaintext
$OpenBSD: patch-makefile_openbsd,v 1.1.1.1 2007/04/20 17:50:05 steven Exp $
|
|
--- makefile.openbsd.orig Fri May 19 19:52:42 2006
|
|
+++ makefile.openbsd Mon Apr 16 09:52:33 2007
|
|
@@ -3,17 +3,17 @@
|
|
# LITTLE_ENDIAN and BIG_ENDIAN are already defined by the system headers
|
|
#
|
|
|
|
-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)
|
|
|