diff options
-rw-r--r-- | lang/lua/Makefile | 4 | ||||
-rw-r--r-- | lang/lua50/Makefile | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/lang/lua/Makefile b/lang/lua/Makefile index 3c611d766248..7112759cb487 100644 --- a/lang/lua/Makefile +++ b/lang/lua/Makefile @@ -44,4 +44,8 @@ post-install: @cd ${WRKSRC}/doc && ${INSTALL_DATA} *.html *.gif ${DOCSDIR} .endif +.if ${MACHINE_ARCH:L} == "amd64" +CFLAGS+= -fPIC +.endif + .include <bsd.port.mk> diff --git a/lang/lua50/Makefile b/lang/lua50/Makefile index 3c611d766248..7112759cb487 100644 --- a/lang/lua50/Makefile +++ b/lang/lua50/Makefile @@ -44,4 +44,8 @@ post-install: @cd ${WRKSRC}/doc && ${INSTALL_DATA} *.html *.gif ${DOCSDIR} .endif +.if ${MACHINE_ARCH:L} == "amd64" +CFLAGS+= -fPIC +.endif + .include <bsd.port.mk> |