33 lines
874 B
Diff
33 lines
874 B
Diff
--- src/Makefile.am
|
|
+++ src/Makefile.am 2012-01-16 13:23:27.235645838 +0000
|
|
@@ -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 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
|
|
if MINGW
|
|
MINGWLIBS = -lgnurx -lshlwapi
|
|
else
|
|
--- src/libmagic.map
|
|
+++ src/libmagic.map 2011-06-14 00:00:00.000000000 +0000
|
|
@@ -0,0 +1,18 @@
|
|
+{
|
|
+global:
|
|
+ magic_buffer;
|
|
+ magic_check;
|
|
+ magic_close;
|
|
+ magic_compile;
|
|
+ magic_descriptor;
|
|
+ magic_errno;
|
|
+ magic_error;
|
|
+ magic_file;
|
|
+ magic_getpath;
|
|
+ magic_list;
|
|
+ magic_load;
|
|
+ magic_open;
|
|
+ magic_setflags;
|
|
+ magic_version;
|
|
+local: *;
|
|
+};
|