summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2017-07-06 11:17:59 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2017-07-06 11:17:59 +0000
commitee976bef3654a86d59bc9b72bc95e1b6c302bae5 (patch)
treea9ac43c451bec465fd6a99d7adc0b613f71036bb
parente61ad697057d19d0d1b520f971e9f2dd9615caed (diff)
Compile libexpat with -fvisibility=hidden. This restricts the
exported symbols to the indended API. We do not need a Symbols.map anymore. Major library bump is necessary as some internal functions vanish from the ABI. Discussed upstream with Sebastian Pipping; ports bulk build ajacoutot@; OK deraadt@
-rw-r--r--lib/libexpat/Makefile6
-rw-r--r--lib/libexpat/Symbols.map4
-rw-r--r--lib/libexpat/shlib_version2
3 files changed, 3 insertions, 9 deletions
diff --git a/lib/libexpat/Makefile b/lib/libexpat/Makefile
index 9376e090f46..e63076d1348 100644
--- a/lib/libexpat/Makefile
+++ b/lib/libexpat/Makefile
@@ -1,16 +1,14 @@
-# $OpenBSD: Makefile,v 1.12 2017/06/30 11:25:29 bluhm Exp $
+# $OpenBSD: Makefile,v 1.13 2017/07/06 11:17:58 bluhm Exp $
.PATH: ${.CURDIR}/lib
LIB= expat
SRCS= xmlparse.c xmltok.c xmlrole.c
-CFLAGS+=-I${.CURDIR} -DHAVE_EXPAT_CONFIG_H
+CFLAGS+=-I${.CURDIR} -DHAVE_EXPAT_CONFIG_H -fvisibility=hidden
PC_FILES=expat.pc
CLEANFILES+=${PC_FILES}
-VERSION_SCRIPT= ${.CURDIR}/Symbols.map
-
includes:
cmp -s ${DESTDIR}/usr/include/expat.h ${.CURDIR}/lib/expat.h || \
${INSTALL} ${INSTALL_COPY} -m 444 -o $(BINOWN) -g $(BINGRP) \
diff --git a/lib/libexpat/Symbols.map b/lib/libexpat/Symbols.map
deleted file mode 100644
index a8a602dc51e..00000000000
--- a/lib/libexpat/Symbols.map
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- local:
- align_limit_to_full_utf8_characters;
-};
diff --git a/lib/libexpat/shlib_version b/lib/libexpat/shlib_version
index f461c533903..56246d02b24 100644
--- a/lib/libexpat/shlib_version
+++ b/lib/libexpat/shlib_version
@@ -1,2 +1,2 @@
-major=11
+major=12
minor=0