59 lines
1.5 KiB
Diff
59 lines
1.5 KiB
Diff
From f01a61402cd44bb0cb59db43e70309c01acc50d1 Mon Sep 17 00:00:00 2001
|
|
From: Sebastian Pipping <sebastian@pipping.org>
|
|
Date: Mon, 5 Apr 2021 17:23:26 +0200
|
|
Subject: [PATCH] Autotools: Give test suite access to internal symbols
|
|
|
|
---
|
|
lib/Makefile.am | 10 +++++++++-
|
|
tests/Makefile.am | 4 ++--
|
|
2 files changed, 11 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/lib/Makefile.am b/lib/Makefile.am
|
|
index 05343e2..f35a2e1 100644
|
|
--- a/lib/Makefile.am
|
|
+++ b/lib/Makefile.am
|
|
@@ -34,16 +34,24 @@ include_HEADERS = \
|
|
expat_external.h
|
|
|
|
lib_LTLIBRARIES = libexpat.la
|
|
+noinst_LTLIBRARIES = libexpatinternal.la
|
|
|
|
libexpat_la_LDFLAGS = \
|
|
-no-undefined \
|
|
-version-info @LIBCURRENT@:@LIBREVISION@:@LIBAGE@
|
|
|
|
-libexpat_la_SOURCES = \
|
|
+libexpat_la_SOURCES =
|
|
+
|
|
+# This layer of indirection allows
|
|
+# the test suite to access internal symbols
|
|
+# despite compiling with -fvisibility=hidden
|
|
+libexpatinternal_la_SOURCES = \
|
|
xmlparse.c \
|
|
xmltok.c \
|
|
xmlrole.c
|
|
|
|
+libexpat_la_LIBADD = libexpatinternal.la
|
|
+
|
|
doc_DATA = \
|
|
../AUTHORS \
|
|
../Changes
|
|
diff --git a/tests/Makefile.am b/tests/Makefile.am
|
|
index e19fc1a..9724717 100644
|
|
--- a/tests/Makefile.am
|
|
+++ b/tests/Makefile.am
|
|
@@ -52,8 +52,8 @@ runtests_SOURCES = \
|
|
runtestspp_SOURCES = \
|
|
runtestspp.cpp
|
|
|
|
-runtests_LDADD = libruntests.a ../lib/libexpat.la
|
|
-runtestspp_LDADD = libruntests.a ../lib/libexpat.la
|
|
+runtests_LDADD = libruntests.a ../lib/libexpatinternal.la
|
|
+runtestspp_LDADD = libruntests.a ../lib/libexpatinternal.la
|
|
|
|
EXTRA_DIST = \
|
|
chardata.h \
|
|
--
|
|
1.8.3.1
|
|
|