Compile libexpat with -fvisibility=hidden. This restricts the
authorbluhm <bluhm@openbsd.org>
Thu, 6 Jul 2017 11:17:58 +0000 (11:17 +0000)
committerbluhm <bluhm@openbsd.org>
Thu, 6 Jul 2017 11:17:58 +0000 (11:17 +0000)
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@

lib/libexpat/Makefile
lib/libexpat/Symbols.map [deleted file]
lib/libexpat/shlib_version

index 9376e09..e63076d 100644 (file)
@@ -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 (file)
index a8a602d..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-{
-       local:
-               align_limit_to_full_utf8_characters;
-};
index f461c53..56246d0 100644 (file)
@@ -1,2 +1,2 @@
-major=11
+major=12
 minor=0