aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorlinimon <linimon@FreeBSD.org>2017-02-10 02:53:12 +0800
committerlinimon <linimon@FreeBSD.org>2017-02-10 02:53:12 +0800
commitd986308550a19d058cd7490871a870e705d8365c (patch)
treebe5801b4b385a04c75cc1baf3b06a46cc4f893e5 /graphics
parentb9168d5cd97c323a0847a91c6972bca6948a21a0 (diff)
downloadfreebsd-ports-gnome-d986308550a19d058cd7490871a870e705d8365c.tar.gz
freebsd-ports-gnome-d986308550a19d058cd7490871a870e705d8365c.tar.zst
freebsd-ports-gnome-d986308550a19d058cd7490871a870e705d8365c.zip
Add -fPIC to various ports to enable them to build on armv6.
Approved by: portmgr (tier-2 blanket)
Diffstat (limited to 'graphics')
-rw-r--r--graphics/py-soya3d/Makefile6
1 files changed, 2 insertions, 4 deletions
diff --git a/graphics/py-soya3d/Makefile b/graphics/py-soya3d/Makefile
index c498ae62be53..1c890a2994ca 100644
--- a/graphics/py-soya3d/Makefile
+++ b/graphics/py-soya3d/Makefile
@@ -27,6 +27,8 @@ USE_GL= glew glu
USE_PYTHON= autoplist distutils
USE_SDL= sdl
+CFLAGS_aarch64= -fPIC
+CFLAGS_amd64= -fPIC
LDFLAGS+= -L${LOCALBASE}/lib -lGLU
SOYATUTVER= 0.14
@@ -45,10 +47,6 @@ DISTFILES+= SoyaTutorial-${SOYATUTVER}${EXTRACT_SUFX}
.include <bsd.port.pre.mk>
-.if ${ARCH} == "amd64"
-CFLAGS += -fPIC
-.endif
-
post-patch:
@${REINPLACE_CMD} -e \
's|%%LOCALBASE%%|${LOCALBASE}|g' -e \