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