0df72c03e9
Patch is OK but please also try to get it upstream OBS-URL: https://build.opensuse.org/request/show/52279 OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=19
32 lines
829 B
Diff
32 lines
829 B
Diff
--- src/Makefile.am.orig
|
|
+++ src/Makefile.am
|
|
@@ -11,7 +11,7 @@ libmagic_la_SOURCES = magic.c apprentice
|
|
encoding.c compress.c is_tar.c readelf.c print.c fsmagic.c \
|
|
funcs.c file.h names.h patchlevel.h readelf.h tar.h apptype.c \
|
|
file_opts.h elfclass.h mygetopt.h cdf.c cdf_time.c readcdf.c cdf.h
|
|
-libmagic_la_LDFLAGS = -no-undefined -version-info 1:0:0
|
|
+libmagic_la_LDFLAGS = -Wl,--version-script=$(srcdir)/libmagic.map -no-undefined -version-info 1:0:0
|
|
libmagic_la_LIBADD = $(LTLIBOBJS)
|
|
|
|
file_SOURCES = file.c
|
|
--- /dev/null
|
|
+++ src/libmagic.map
|
|
@@ -0,0 +1,16 @@
|
|
+{
|
|
+global:
|
|
+ magic_buffer;
|
|
+ magic_check;
|
|
+ magic_close;
|
|
+ magic_compile;
|
|
+ magic_descriptor;
|
|
+ magic_errno;
|
|
+ magic_error;
|
|
+ magic_file;
|
|
+ magic_getpath;
|
|
+ magic_load;
|
|
+ magic_open;
|
|
+ magic_setflags;
|
|
+local: *;
|
|
+};
|
|
\ No newline at end of file
|