From 53625bac52bb8604215639523b1893cebc9a58d3 Mon Sep 17 00:00:00 2001 From: Ian Lepore Date: Sat, 20 Feb 2016 19:19:50 +0000 Subject: 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 --- lang/lua51/Makefile | 4 +--- lang/lua52/Makefile | 4 +--- lang/lua53/Makefile | 4 +--- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/lang/lua51/Makefile b/lang/lua51/Makefile index 08556a45dee8..c99e2a20d401 100644 --- a/lang/lua51/Makefile +++ b/lang/lua51/Makefile @@ -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' \ diff --git a/lang/lua52/Makefile b/lang/lua52/Makefile index 02beccac1b2a..b7877b2ef47e 100644 --- a/lang/lua52/Makefile +++ b/lang/lua52/Makefile @@ -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' \ diff --git a/lang/lua53/Makefile b/lang/lua53/Makefile index 1d145f3e3a9c..8fa0b6ea20cd 100644 --- a/lang/lua53/Makefile +++ b/lang/lua53/Makefile @@ -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' \ -- cgit v1.2.3