aboutsummaryrefslogtreecommitdiff
path: root/net/asterisk/files/patch-Makefile.rules
diff options
context:
space:
mode:
Diffstat (limited to 'net/asterisk/files/patch-Makefile.rules')
-rw-r--r--net/asterisk/files/patch-Makefile.rules16
1 files changed, 16 insertions, 0 deletions
diff --git a/net/asterisk/files/patch-Makefile.rules b/net/asterisk/files/patch-Makefile.rules
new file mode 100644
index 000000000000..f90430ec9ddd
--- /dev/null
+++ b/net/asterisk/files/patch-Makefile.rules
@@ -0,0 +1,16 @@
+--- Makefile.rules.orig 2009-09-28 22:09:25.000000000 +0300
++++ Makefile.rules 2009-11-23 16:15:23.000000000 +0200
+@@ -37,11 +37,13 @@
+
+ OPTIMIZE?=-O6
+
++ifneq ($(OSARCH),FreeBSD)
+ ifeq ($(findstring DONT_OPTIMIZE,$(MENUSELECT_CFLAGS)),)
+ _ASTCFLAGS+=$(OPTIMIZE)
+ else
+ _ASTCFLAGS+=-O0
+ endif
++endif
+
+ # shortcuts for common combinations of flags; these must be recursively expanded so that
+ # per-target settings will be applied