pkgsrc/archivers/unrar/patches/patch-aa
2005-05-21 15:30:06 +00:00

36 lines
746 B
Text

$NetBSD: patch-aa,v 1.12 2005/05/21 15:30:06 wiz Exp $
--- makefile.unix.orig 2005-04-30 09:00:12.000000000 +0200
+++ makefile.unix
@@ -6,8 +6,8 @@
#
# Linux using GCC
-CXX=g++
-CXXFLAGS=-O2
+#CXX=g++
+#CXXFLAGS=-O2
DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
STRIP=strip
@@ -82,9 +82,11 @@ STRIP=strip
##########################
-COMPILE=$(CXX) $(CXXFLAGS) $(DEFINES)
+COMPILE=$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(DEFINES)
LINK=$(CXX)
+WHAT=UNRAR
+
UNRAR_OBJ=filestr.o recvol.o rs.o scantree.o
LIB_OBJ=filestr.o scantree.o dll.o
@@ -101,7 +103,6 @@ all: unrar
clean:
@rm -f *.o *.bak *~
-unrar: WHAT=UNRAR
unrar: $(OBJECTS) $(UNRAR_OBJ)
@rm -f unrar
$(LINK) -o unrar $(LDFLAGS) $(OBJECTS) $(UNRAR_OBJ) $(LIBS)