From owner-svn-ports-head@freebsd.org Sat Feb 20 19:19:52 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3C806AADA07; Sat, 20 Feb 2016 19:19:52 +0000 (UTC) (envelope-from ian@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EB790361; Sat, 20 Feb 2016 19:19:51 +0000 (UTC) (envelope-from ian@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u1KJJp6w027067; Sat, 20 Feb 2016 19:19:51 GMT (envelope-from ian@FreeBSD.org) Received: (from ian@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u1KJJo55027064; Sat, 20 Feb 2016 19:19:50 GMT (envelope-from ian@FreeBSD.org) Message-Id: <201602201919.u1KJJo55027064@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ian set sender to ian@FreeBSD.org using -f From: Ian Lepore Date: Sat, 20 Feb 2016 19:19:50 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r409263 - in head/lang: lua51 lua52 lua53 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Feb 2016 19:19:52 -0000 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' \