summaryrefslogtreecommitdiff
path: root/archivers/ppmd/patches/patch-aa
blob: fe8234c299a254bbb21940a72da8bd3c7d299543 (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
$NetBSD: patch-aa,v 1.1.1.1 2004/03/08 23:44:00 ben Exp $

--- makefile.gmk.orig	2004-03-08 15:08:54.000000000 -0800
+++ makefile.gmk
@@ -1,18 +1,17 @@
 ## Take a look at PPMdType.h for additional compiler & environment options
 OBJS = PPMd.o Model.o
 
-CXX = Gcc
-LINK = Gcc
+LINK = $(CXX)
 CODE_FLAGS = -fno-exceptions -fno-rtti -pedantic -Wall \
 		-Wno-unknown-pragmas -Wno-sign-compare -Wno-conversion
-OPT_FLAGS = -O3 -mcpu=pentiumpro -fomit-frame-pointer -fstrict-aliasing
-DEBUG_FLAGS = -g0
+OPT_FLAGS =
+DEBUG_FLAGS = -g
 LD_FLAGS = -s
 
-PPMd.exe: $(OBJS)
-	$(LINK) -o PPMd.exe $(OBJS) -lstdcxx -Xlinker $(LD_FLAGS)
+ppmd: $(OBJS)
+	$(LINK) $(LD_FLAGS) -o ppmd $(OBJS)
 
 Model.o: Model.cpp PPMdType.h PPMd.h SubAlloc.hpp Coder.hpp
 	$(CXX) $(CODE_FLAGS) $(OPT_FLAGS) $(DEBUG_FLAGS) -c Model.cpp
 PPMd.o: PPMd.cpp PPMdType.h PPMd.h
-	$(CXX) $(CODE_FLAGS) $(OPT_FLAGS) $(DEBUG_FLAGS) -c PPMd.cpp
\ No newline at end of file
+	$(CXX) $(CODE_FLAGS) $(OPT_FLAGS) $(DEBUG_FLAGS) -c PPMd.cpp