Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Only use -fPIC on amd64 (x86_64 on dragonfly)
Baptiste Daroussin committed 12 years ago
commit 75d921714333e05192a6013d377f9276c078e54a
parent a258f8a
1 file changed +13 -2
modified external/libucl/Makefile
@@ -1,3 +1,5 @@
+
.include <bsd.own.mk>
+

LIB=	ucl
INTERNALLIB=

@@ -9,8 +11,17 @@ SRCS= src/ucl_emitter.c \

CFLAGS=	-I${.CURDIR}/uthash \
	-I${.CURDIR}/include \
-
	-I${.CURDIR}/src \
-
	-fPIC
+
	-I${.CURDIR}/src
+

+
.if defined(TARGET_ARCH)
+
ARCH=	${TARGET_ARCH}
+
.else
+
ARCH=	${MACHINE_ARCH}
+
.endif
+

+
.if ${ARCH} == amd64 || ${ARCH} == x86_64
+
CFLAGS+=	-fPIC
+
.endif

OSVERSION!=	/sbin/sysctl -n kern.osreldate