32 lines
864 B
Diff
32 lines
864 B
Diff
--- src/Makefile.am
|
|
+++ src/Makefile.am 2011-06-14 14:05:18.691926054 +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 names.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,17 @@
|
|
+{
|
|
+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;
|
|
+local: *;
|
|
+};
|