summaryrefslogtreecommitdiff
path: root/archivers/unrar/patches/patch-aa
blob: a24bf76d4ad41ff01e63f9b20af237ce4f4b6723 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
$NetBSD: patch-aa,v 1.10 2004/03/11 21:39:17 tv Exp $

--- makefile.unix.orig	Fri Jan 30 08:42:12 2004
+++ makefile.unix	Thu Mar 11 16:34:10 2004
@@ -6,8 +6,8 @@
 #
 
 # Linux using GCC
-CXX=g++
-CXXFLAGS=-O2
+#CXX=g++
+#CXXFLAGS=-O2
 DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
 
 # Linux using LCC
@@ -48,9 +48,11 @@
 
 ##########################
 
-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=dll.o
 
@@ -67,7 +69,6 @@
 clean:
 	@rm -f *.o *.bak *~
 
-unrar:	WHAT=UNRAR
 unrar:	$(OBJECTS) $(UNRAR_OBJ)
 	@rm -f unrar
 	$(LINK) -o unrar $(LDFLAGS) $(OBJECTS) $(UNRAR_OBJ) $(LIBS)