summaryrefslogtreecommitdiffstats
path: root/lang/dice
diff options
context:
space:
mode:
Diffstat (limited to 'lang/dice')
-rw-r--r--lang/dice/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/lang/dice/Makefile b/lang/dice/Makefile
index c01ecf4..0f149b5 100644
--- a/lang/dice/Makefile
+++ b/lang/dice/Makefile
@@ -27,9 +27,14 @@ post-patch:
@${FIND} ${WRKSRC} -name '*.[ch]' | ${XARGS} \
${REINPLACE_CMD} -e 's@__aligned@dice_aligned@g'
+ @${REINPLACE_CMD} -e 's/gcc/$$(CC)/' \
+ -e '/^CFLAGS/{s/=/+=/;s/-O2//;}' \
+ ${WRKSRC}/suplib/Makefile \
+ ${WRKSRC}/src/*/Makefile
+
do-build:
- cd ${WRKSRC}/suplib && ${MAKE} && ${MAKE} install
- cd ${WRKSRC}/src && ${MAKE} && ${MAKE} install
+ cd ${WRKSRC}/suplib && ${MAKE} && ${MAKE_ENV} ${MAKE} install
+ cd ${WRKSRC}/src && ${MAKE} && ${MAKE_ENV} ${MAKE} install
do-install:
@${RM} ${WRKSRC}/doc/loadabs.c.bak
OpenPOWER on IntegriCloud