svn commit: r409263 - in head/lang: lua51 lua52 lua53
Ian Lepore
ian at FreeBSD.org
Sat Feb 20 19:19:52 UTC 2016
Author: ian
Date: Sat Feb 20 19:19:50 2016
New Revision: 409263
URL: https://svnweb.freebsd.org/changeset/ports/409263
Log:
Use -fPIC on all arches; lua builds the object files into a shared lib.
Since the object files get built into a shared lib, using -fPIC on all
arches is the right thing to do, instead of adding it to each new arch that
comes along which doesn't accidentally allow non-PIC modules in shared libs.
PR: 207324
Approved by: mat(mentor)
Differential Revision: https://reviews.freebsd.org/D5362
Modified:
head/lang/lua51/Makefile
head/lang/lua52/Makefile
head/lang/lua53/Makefile
Modified: head/lang/lua51/Makefile
==============================================================================
--- head/lang/lua51/Makefile Sat Feb 20 19:13:22 2016 (r409262)
+++ head/lang/lua51/Makefile Sat Feb 20 19:19:50 2016 (r409263)
@@ -52,9 +52,7 @@ LUA_SUBDIR?= lua${PKGNAMESUFFIX}
LUA_INCDIR?= ${LUA_PREFIX}/include/${LUA_SUBDIR}
LUA_LIBDIR?= ${LUA_PREFIX}/lib
-CFLAGS_aarch64= -fPIC
-CFLAGS_amd64= -fPIC
-CFLAGS_powerpc= -fPIC
+CFLAGS+= -fPIC
post-patch:
@${REINPLACE_CMD} -e 's,rand *(,random(,g' \
Modified: head/lang/lua52/Makefile
==============================================================================
--- head/lang/lua52/Makefile Sat Feb 20 19:13:22 2016 (r409262)
+++ head/lang/lua52/Makefile Sat Feb 20 19:19:50 2016 (r409263)
@@ -57,9 +57,7 @@ SUB_LIST= version=${PORTVERSION} \
libdir=${LUA_LIBDIR} \
soname=lua-${LUA_VER}
-CFLAGS_aarch64= -fPIC
-CFLAGS_amd64= -fPIC
-CFLAGS_powerpc= -fPIC
+CFLAGS+= -fPIC
post-patch:
@${REINPLACE_CMD} -e 's,rand *(,random(,g' \
Modified: head/lang/lua53/Makefile
==============================================================================
--- head/lang/lua53/Makefile Sat Feb 20 19:13:22 2016 (r409262)
+++ head/lang/lua53/Makefile Sat Feb 20 19:19:50 2016 (r409263)
@@ -58,9 +58,7 @@ SUB_LIST= version=${PORTVERSION} \
libdir=${LUA_LIBDIR} \
soname=lua-${LUA_VER}
-CFLAGS_aarch64= -fPIC
-CFLAGS_amd64= -fPIC
-CFLAGS_powerpc= -fPIC
+CFLAGS+= -fPIC
post-patch:
@${REINPLACE_CMD} -e 's,rand *(,random(,g' \
More information about the svn-ports-head
mailing list