summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lang/hugs/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/lang/hugs/Makefile b/lang/hugs/Makefile
index 2476d09e1c0e..5896bdd92410 100644
--- a/lang/hugs/Makefile
+++ b/lang/hugs/Makefile
@@ -22,17 +22,22 @@ USE_SIZE= yes
USE_REINPLACE= yes
USE_BISON= yes
CONFIGURE_ARGS+= --prefix=${PREFIX} --enable-ffi
+CONFIGURE_ENV+= CC="${CC}" CFLAGS="${CFLAGS}"
ALL_TARGET= default ffihugs
MAN1= hugs.1 hugs-package.1
+.if ${MACHINE_ARCH:L} == "amd64"
+CFLAGS+= "-fPIC"
+.endif
+
post-patch:
@${REINPLACE_CMD} -e '/^install :: install_notes/d ; \
/^install :: install_guide/d' \
${WRKSRC}/MkInstal.in
do-configure:
- @(cd ${WRKSRC}/unix && ./configure ${CONFIGURE_ARGS})
+ @(cd ${WRKSRC}/unix && ${CONFIGURE_ENV} ./configure ${CONFIGURE_ARGS})
.if !defined(NOPORTDOCS)
post-install: