From 6660247884f00629c46e726ec5b91d9db4dd6bd0bf53d774c3e8b6d031fd0db2 Mon Sep 17 00:00:00 2001 From: Petr Gajdos Date: Wed, 23 Jan 2013 09:17:31 +0000 Subject: [PATCH] - according to upstream changelog: - Improved ability to build without the configure-generated expat_config.h header. This is useful for applications which embed Expat rather than linking in the library. because I am not exactly sure about implication of this, rather use -DXML_HAVE_VISIBILITY in CFLAG_VISIBILITY in expat-visibility.patch OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/expat?expand=0&rev=32 --- expat-visibility.patch | 7 +++---- expat.changes | 11 +++++++++++ 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/expat-visibility.patch b/expat-visibility.patch index 5dca803..5dcc434 100644 --- a/expat-visibility.patch +++ b/expat-visibility.patch @@ -98,7 +98,7 @@ Index: expat-2.1.0/conftools/visibility.m4 + CFLAGS="$gl_save_CFLAGS"]) + AC_MSG_RESULT([$gl_cv_cc_visibility]) + if test $gl_cv_cc_visibility = yes; then -+ CFLAG_VISIBILITY="-fvisibility=hidden" ++ CFLAG_VISIBILITY="-fvisibility=hidden -DXML_HAVE_VISIBILITY=1" + HAVE_VISIBILITY=1 + fi + fi @@ -111,12 +111,11 @@ Index: expat-2.1.0/lib/expat_external.h =================================================================== --- expat-2.1.0.orig/lib/expat_external.h +++ expat-2.1.0/lib/expat_external.h -@@ -65,6 +65,10 @@ +@@ -65,6 +65,9 @@ #endif #endif /* not defined XML_STATIC */ -+#include "../expat_config.h" -+#if HAVE_VISIBILITY ++#if XML_HAVE_VISIBILITY +#define XMLIMPORT __attribute__ ((visibility ("default"))) +#endif diff --git a/expat.changes b/expat.changes index 11073b5..0b471ba 100644 --- a/expat.changes +++ b/expat.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Wed Jan 23 09:07:25 UTC 2013 - pgajdos@suse.com + +- according to upstream changelog: + - Improved ability to build without the configure-generated + expat_config.h header. This is useful for applications + which embed Expat rather than linking in the library. + + because I am not exactly sure about implication of this, rather use + -DXML_HAVE_VISIBILITY in CFLAG_VISIBILITY in expat-visibility.patch + ------------------------------------------------------------------- Tue Jan 22 12:40:02 UTC 2013 - jengelh@inai.de