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:
commit
ab93dac350
@ -98,7 +98,7 @@ Index: expat-2.1.0/conftools/visibility.m4
|
|||||||
+ CFLAGS="$gl_save_CFLAGS"])
|
+ CFLAGS="$gl_save_CFLAGS"])
|
||||||
+ AC_MSG_RESULT([$gl_cv_cc_visibility])
|
+ AC_MSG_RESULT([$gl_cv_cc_visibility])
|
||||||
+ if test $gl_cv_cc_visibility = yes; then
|
+ if test $gl_cv_cc_visibility = yes; then
|
||||||
+ CFLAG_VISIBILITY="-fvisibility=hidden"
|
+ CFLAG_VISIBILITY="-fvisibility=hidden -DXML_HAVE_VISIBILITY=1"
|
||||||
+ HAVE_VISIBILITY=1
|
+ HAVE_VISIBILITY=1
|
||||||
+ fi
|
+ fi
|
||||||
+ 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.orig/lib/expat_external.h
|
||||||
+++ expat-2.1.0/lib/expat_external.h
|
+++ expat-2.1.0/lib/expat_external.h
|
||||||
@@ -65,6 +65,10 @@
|
@@ -65,6 +65,9 @@
|
||||||
#endif
|
#endif
|
||||||
#endif /* not defined XML_STATIC */
|
#endif /* not defined XML_STATIC */
|
||||||
|
|
||||||
+#include "../expat_config.h"
|
+#if XML_HAVE_VISIBILITY
|
||||||
+#if HAVE_VISIBILITY
|
|
||||||
+#define XMLIMPORT __attribute__ ((visibility ("default")))
|
+#define XMLIMPORT __attribute__ ((visibility ("default")))
|
||||||
+#endif
|
+#endif
|
||||||
|
|
||||||
|
@ -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
|
Tue Jan 22 12:40:02 UTC 2013 - jengelh@inai.de
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user