File giflib-visibility.patch of Package giflib

---
 configure.ac          |    7 +++++--
 lib/gif_hash.h        |    4 ++++
 lib/gif_lib_private.h |    3 +++
 3 files changed, 12 insertions(+), 2 deletions(-)

Index: giflib-5.0.4/configure.ac
===================================================================
--- giflib-5.0.4.orig/configure.ac
+++ giflib-5.0.4/configure.ac
@@ -8,11 +8,14 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_R
 dnl Note: config.h is not used in the current build
 dnl We leave this in place only to suppress an error message at autogen time
 AM_CONFIG_HEADER(config.h)
+AC_CONFIG_MACRO_DIR([m4])
 
 dnl Checks for programs.
-AC_PROG_LIBTOOL
-AC_PROG_CC
+AC_PROG_CC_STDC
+AC_USE_SYSTEM_EXTENSIONS
+AC_SYS_LARGEFILE
 AC_PROG_CPP
+LT_INIT([pic-only disable-static])
 AC_PROG_INSTALL
 AC_PROG_LN_S
 AC_PROG_MAKE_SET
Index: giflib-5.0.4/lib/gif_hash.h
===================================================================
--- giflib-5.0.4.orig/lib/gif_hash.h
+++ giflib-5.0.4/lib/gif_hash.h
@@ -25,6 +25,8 @@ gif_hash.h - magfic constants and declar
 #define HT_PUT_KEY(l)	(l << 12)
 #define HT_PUT_CODE(l)	(l & 0x0FFF)
 
+#pragma GCC visibility push(hidden)
+
 typedef struct GifHashTableType {
     uint32_t HTable[HT_SIZE];
 } GifHashTableType;
@@ -34,6 +36,8 @@ void _ClearHashTable(GifHashTableType *H
 void _InsertHashTable(GifHashTableType *HashTable, uint32_t Key, int Code);
 int _ExistsHashTable(GifHashTableType *HashTable, uint32_t Key);
 
+#pragma GCC visibility pop
+
 #endif /* _GIF_HASH_H_ */
 
 /* end */
Index: giflib-5.0.4/lib/gif_lib_private.h
===================================================================
--- giflib-5.0.4.orig/lib/gif_lib_private.h
+++ giflib-5.0.4/lib/gif_lib_private.h
@@ -29,6 +29,8 @@ gif_lib_private.h - internal giflib rout
 #define IS_READABLE(Private)    (Private->FileState & FILE_STATE_READ)
 #define IS_WRITEABLE(Private)   (Private->FileState & FILE_STATE_WRITE)
 
+#pragma GCC visibility push(hidden)
+
 typedef struct GifFilePrivateType {
     GifWord FileState, FileHandle,  /* Where all this data goes to! */
       BitsPerPixel,     /* Bits per pixel (Codes uses at least this + 1). */
@@ -54,6 +56,7 @@ typedef struct GifFilePrivateType {
     bool gif89;
 } GifFilePrivateType;
 
+#pragma GCC visibility pop
 #endif /* _GIF_LIB_PRIVATE_H */
 
 /* end */
openSUSE Build Service is sponsored by