aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lang/lua4/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/lang/lua4/Makefile b/lang/lua4/Makefile
index 4858e984b33f..c79d286f7b62 100644
--- a/lang/lua4/Makefile
+++ b/lang/lua4/Makefile
@@ -48,4 +48,8 @@ post-install:
@${STRIP_CMD} ${PREFIX}/bin/lua
@${STRIP_CMD} ${PREFIX}/bin/luac
+.if ${MACHINE_ARCH:L} == "amd64"
+CFLAGS+= -fPIC
+.endif
+
.include <bsd.port.mk>