summaryrefslogtreecommitdiff
path: root/lang/ocaml
diff options
context:
space:
mode:
authorkhorben <khorben@pkgsrc.org>2016-05-26 14:31:12 +0000
committerkhorben <khorben@pkgsrc.org>2016-05-26 14:31:12 +0000
commit8675eea2b2a29d61ac488fd3e37be064e02972be (patch)
tree25e7b51d009f8e4391de806f7749266634167f4b /lang/ocaml
parentf7a3e2ec5fb3ebdafce8ea4098d842269b90f691 (diff)
downloadpkgsrc-8675eea2b2a29d61ac488fd3e37be064e02972be.tar.gz
Add support for CFLAGS
This fixes the build with PKGSRC_MKPIE.
Diffstat (limited to 'lang/ocaml')
-rw-r--r--lang/ocaml/Makefile.common6
1 files changed, 3 insertions, 3 deletions
diff --git a/lang/ocaml/Makefile.common b/lang/ocaml/Makefile.common
index dcff5d46f02..6ccaa1cce37 100644
--- a/lang/ocaml/Makefile.common
+++ b/lang/ocaml/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.46 2016/05/05 08:12:01 jaapb Exp $
+# $NetBSD: Makefile.common,v 1.47 2016/05/26 14:31:12 khorben Exp $
# used by x11/labltk/Makefile
# used by x11/ocaml-graphics/Makefile
@@ -33,11 +33,11 @@ INSTALL_UNSTRIPPED= yes
.endif
.if ${OPSYS} == "Darwin"
-CONFIGURE_ARGS+= -cc "${CC} -arch ${MACHINE_ARCH}"
+CONFIGURE_ARGS+= -cc "${CC} -arch ${MACHINE_ARCH} ${CFLAGS}"
CONFIGURE_ARGS+= -aspp "${CC} -arch ${MACHINE_ARCH} -c"
CONFIGURE_ARGS+= -as "as -arch ${MACHINE_ARCH}"
.else
-CONFIGURE_ARGS+= -cc ${CC}
+CONFIGURE_ARGS+= -cc "${CC} ${CFLAGS}"
.endif
.include "../../mk/bdb.buildlink3.mk"