honor CFLAGS and don't force -Os or -O; ok sthen@

This commit is contained in:
naddy 2011-09-16 12:49:21 +00:00
parent 7ff35bc980
commit aabf2d2b28
3 changed files with 31 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.123 2011/09/16 11:41:40 espie Exp $
# $OpenBSD: Makefile,v 1.124 2011/09/16 12:49:21 naddy Exp $
SHARED_ONLY= Yes
COMMENT-main= open source multi-protocol PBX and telephony toolkit
@ -7,6 +7,7 @@ VER= 1.8.6.0
DISTNAME= asterisk-${VER:S/beta/-beta/:S/rc/-rc/}
PKGNAME-main= asterisk-${VER}
REVISION = 0
REVISION-main= 1
SOUNDS= CORE MOH EXTRA
SOUNDS_CORE= asterisk-core-sounds-en-gsm-1.4.21

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-main_editline_configure,v 1.1 2011/09/16 12:49:21 naddy Exp $
--- main/editline/configure.orig Thu Sep 15 18:37:10 2011
+++ main/editline/configure Thu Sep 15 18:37:45 2011
@@ -1963,7 +1963,7 @@ if test "x$enable_debug" = "xyes" ; then
CPPFLAGS="$CPPFLAGS -DDEBUG_TTY -DDEBUG_KEY -DDEBUG_READ -DDEBUG"
CPPFLAGS="$CPPFLAGS -DDEBUG_REFRESH -DDEBUG_PASTE"
else
- CFLAGS="$CFLAGS -O"
+ : CFLAGS="$CFLAGS -O"
fi

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-menuselect_mxml_Makefile_in,v 1.1 2011/09/16 12:49:21 naddy Exp $
--- menuselect/mxml/Makefile.in.orig Thu Sep 15 19:04:42 2011
+++ menuselect/mxml/Makefile.in Thu Sep 15 19:05:02 2011
@@ -23,11 +23,11 @@
AR = @AR@
ARFLAGS = @ARFLAGS@
CC = @CC@
-CFLAGS = $(OPTIM) @CFLAGS@ @CPPFLAGS@
+CFLAGS = @CFLAGS@ @CPPFLAGS@
CP = @CP@
DSO = @DSO@
DSOFLAGS = @DSOFLAGS@
-LDFLAGS = $(OPTIM) @LDFLAGS@
+LDFLAGS = @LDFLAGS@
INSTALL = @INSTALL@
LIBMXML = @LIBMXML@
LN = @LN@ -s