Respect CC/CFLAGS for all parts of nqp; don't add -O3 in 3rdparty/dyncall.

prodded by and ok aja@
This commit is contained in:
pascal 2012-06-03 12:17:54 +00:00
parent c4486c33db
commit 70734078be
3 changed files with 28 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.2 2012/05/09 13:50:58 pascal Exp $
# $OpenBSD: Makefile,v 1.3 2012/06/03 12:17:54 pascal Exp $
SHARED_ONLY = Yes
@ -8,6 +8,7 @@ COMMENT = Not Quite Perl
V = 2012.04.1
DISTNAME = nqp-${V}
REVISION = 0
PARROT_VERSION = 4.3.0
SUBST_VARS += PARROT_VERSION
@ -36,6 +37,8 @@ CONFIGURE_STYLE = simple
CONFIGURE_SCRIPT = /usr/bin/perl Configure.pl
CONFIGURE_ARGS = --with-parrot="${LOCALBASE}/bin/parrot"
MAKE_ENV += CC="${CC}"
REGRESS_TARGET = test
.include <bsd.port.mk>

View File

@ -0,0 +1,10 @@
$OpenBSD: patch-3rdparty_dyncall_buildsys_gmake_tool_gcc_release_gmake,v 1.1 2012/06/03 12:17:54 pascal Exp $
--- 3rdparty/dyncall/buildsys/gmake/tool/gcc_release.gmake.orig Sun Jun 3 13:18:38 2012
+++ 3rdparty/dyncall/buildsys/gmake/tool/gcc_release.gmake Sun Jun 3 13:18:56 2012
@@ -17,6 +17,3 @@
#
#//////////////////////////////////////////////////////////////////////////////
-CFLAGS += -O3
-CXXFLAGS += -O3
-

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-tools_build_Makefile_in,v 1.1 2012/06/03 12:17:54 pascal Exp $
--- tools/build/Makefile.in.orig Sun Jun 3 13:17:28 2012
+++ tools/build/Makefile.in Sun Jun 3 13:18:02 2012
@@ -14,8 +14,8 @@ PARROT_LIBRARY_DIR = $(PARROT_LIB_DIR)/library
NQP_LANG_DIR = $(PARROT_LIB_DIR)/languages/nqp
HAS_ICU = @has_icu@
-CC = @cc@
-CFLAGS = @ccflags@ @cc_shared@ @cc_debug@ @ccwarn@ @gc_flag@
+CC ?= @cc@
+CFLAGS += @ccflags@ @cc_shared@ @cc_debug@ @ccwarn@ @gc_flag@
EXE = @exe@
LD = @ld@
LDFLAGS = @ldflags@ @ld_debug@