SHA256
1
0
forked from pool/expat

Accepting request 149768 from devel:libraries:c_c++

as it can't get worse, I want to have this in factory

OBS-URL: https://build.opensuse.org/request/show/149768
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/expat?expand=0&rev=35
This commit is contained in:
Stephan Kulow 2013-01-24 15:03:01 +00:00 committed by Git OBS Bridge
commit ab93dac350
2 changed files with 15 additions and 4 deletions

View File

@ -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

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Wed Jan 23 09:07:25 UTC 2013 - pgajdos@suse.com
- fix of fix of [bnc#798644]
- 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