Honour CC
This commit is contained in:
parent
2e0a32a427
commit
4b7541a170
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.33 2016/03/22 19:17:30 mmcc Exp $
|
||||
# $OpenBSD: Makefile,v 1.34 2017/03/03 20:26:41 jca Exp $
|
||||
|
||||
# build system needs per-arch tweaks and is very unfriendly to
|
||||
# bytecode-only builds. powerpc nativecode is currently broken.
|
||||
@ -35,6 +35,8 @@ P5INST = ${PREFIX}/${P5SITE}
|
||||
SUBST_VARS += P5SITE
|
||||
GCC = /usr/bin/gcc# cant use CC in case it's set to cilly
|
||||
|
||||
MAKE_FLAGS = CC="${CC}"
|
||||
|
||||
.include <bsd.port.arch.mk>
|
||||
.if ${MACHINE_ARCH} == powerpc
|
||||
PKG_ARGS += -Dtarget=ppc_OPENBSD
|
||||
|
12
devel/cil/patches/patch-Makefile_in
Normal file
12
devel/cil/patches/patch-Makefile_in
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-Makefile_in,v 1.4 2017/03/03 20:26:41 jca Exp $
|
||||
--- Makefile.in.orig Fri Mar 3 21:22:30 2017
|
||||
+++ Makefile.in Fri Mar 3 21:22:49 2017
|
||||
@@ -69,7 +69,7 @@ ifdef EMUL
|
||||
# is broken on MacOS X)
|
||||
MACHDEPCC=$(CC) $(CFLAGS) -static -D_GNUCC
|
||||
else
|
||||
- MACHDEPCC=gcc -D_GNUCC
|
||||
+ MACHDEPCC=$(CC) -D_GNUCC
|
||||
endif
|
||||
|
||||
# Put here all the byproducts of make
|
Loading…
x
Reference in New Issue
Block a user