svn commit: r480075 - head/graphics/lua-gd
Ed Maste
emaste at FreeBSD.org
Tue Sep 18 20:04:05 UTC 2018
Author: emaste (src committer)
Date: Tue Sep 18 20:04:04 2018
New Revision: 480075
URL: https://svnweb.freebsd.org/changeset/ports/480075
Log:
graphics/lua-gd: enable PIC on arm64 and i386, for lld
Shared objects should be built as PIC, and lld enforces this by default.
Add aarch64 and i386 cases to the existing set of per-arch CFLAGS, and
remove the BROKEN_aarch64.
Approved by: portmgr (lld blanket)
Sponsored by: The FreeBSD Foundation
Modified:
head/graphics/lua-gd/Makefile
Modified: head/graphics/lua-gd/Makefile
==============================================================================
--- head/graphics/lua-gd/Makefile Tue Sep 18 20:00:51 2018 (r480074)
+++ head/graphics/lua-gd/Makefile Tue Sep 18 20:04:04 2018 (r480075)
@@ -12,8 +12,6 @@ COMMENT= GD bindings for the Lua programming language
LICENSE= MIT
-BROKEN_aarch64= fails to link: can't create dynamic relocation R_AARCH64_ABS64 against local symbol in readonly segment
-
LIB_DEPENDS= libgd.so:graphics/gd
OPTIONS_DEFINE= DOCS EXAMPLES
@@ -25,7 +23,9 @@ GDFEATURES= `gdlib-config --features |sed -e "s/GD_/-D
.include <bsd.port.options.mk>
+CFLAGS_aarch64+=-fPIC
CFLAGS_amd64+= -fPIC
+CFLAGS_i386+= -fPIC
do-build:
${CC} -o ${WRKSRC}/gd.so ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} ${GDFEATURES} ${WRKSRC}/luagd.c
More information about the svn-ports-head
mailing list