summaryrefslogtreecommitdiff
path: root/net/miniupnpd/patches/patch-Makefile
blob: b920b5c5b2e9c483862fce69e4bb6226ba48594b (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
$NetBSD: patch-Makefile,v 1.3 2012/12/20 21:39:28 joerg Exp $

* Honor user setting CFLAGS.
* Do not override FWNAME if passed in

--- Makefile.orig	2012-03-05 20:37:13.000000000 +0000
+++ Makefile
@@ -11,7 +11,7 @@
 # Linux users, please use Makefile.linux :
 #  make -f Makefile.linux
 
-CFLAGS = -pipe -Wall -Os -ansi
+CFLAGS += -Wall
 #CFLAGS = -pipe -Wall -O -g -DDEBUG -ansi
 CC ?= gcc
 RM = rm -f
@@ -28,7 +28,6 @@ FWNAME = pf
 .else
 FWNAME = ipf
 .endif
-.endif
 
 # better way to find if we are using ipf or pf
 .if $(OSNAME) == "FreeBSD"
@@ -53,6 +52,8 @@ FWNAME != . /etc/rc.subr; . /etc/rc.conf
 FWNAME = ipfw
 .endif
 
+.endif
+
 # Solaris specific CFLAGS
 .if $(OSNAME) == "SunOS"
 CFLAGS += -DSOLARIS2=`uname -r | cut -d. -f2`