giflib/giflib-visibility.patch

59 lines
1.7 KiB
Diff
Raw Normal View History

--- lib/gif_lib_private.h.orig
+++ 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 */
--- lib/gif_hash.h.orig
+++ 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 */
--- configure.ac.orig
+++ 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