summaryrefslogtreecommitdiffstats
path: root/lib/libexpat
diff options
context:
space:
mode:
authoraoyama <aoyama@openbsd.org>2017-07-28 09:32:49 +0000
committeraoyama <aoyama@openbsd.org>2017-07-28 09:32:49 +0000
commitafab3565a772bcb749fbd717fd9d743cb15b8bf0 (patch)
tree4db96039c1d25b5978129f58fd54c164b0523dae /lib/libexpat
parentAdd an error argument to rtm_send() instead of rerolling it inside (diff)
downloadwireguard-openbsd-afab3565a772bcb749fbd717fd9d743cb15b8bf0.tar.xz
wireguard-openbsd-afab3565a772bcb749fbd717fd9d743cb15b8bf0.zip
Gcc3 does not have -fvisibility feature, so skip -fvisibility=hidden
flag when compiling with gcc3. ok espie@
Diffstat (limited to 'lib/libexpat')
-rw-r--r--lib/libexpat/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/libexpat/Makefile b/lib/libexpat/Makefile
index e63076d1348..a6e8a62e5a3 100644
--- a/lib/libexpat/Makefile
+++ b/lib/libexpat/Makefile
@@ -1,10 +1,15 @@
-# $OpenBSD: Makefile,v 1.13 2017/07/06 11:17:58 bluhm Exp $
+# $OpenBSD: Makefile,v 1.14 2017/07/28 09:32:49 aoyama Exp $
.PATH: ${.CURDIR}/lib
+.include <bsd.own.mk> # to check ${COMPILER_VERSION}
+
LIB= expat
SRCS= xmlparse.c xmltok.c xmlrole.c
-CFLAGS+=-I${.CURDIR} -DHAVE_EXPAT_CONFIG_H -fvisibility=hidden
+CFLAGS+=-I${.CURDIR} -DHAVE_EXPAT_CONFIG_H
+.if ${COMPILER_VERSION:L} != "gcc3"
+CFLAGS+=-fvisibility=hidden
+.endif
PC_FILES=expat.pc
CLEANFILES+=${PC_FILES}