diff options
author | Matti Niemenmaa | 2015-06-10 14:04:04 +0300 |
---|---|---|
committer | Matti Niemenmaa | 2015-07-14 16:19:13 +0300 |
commit | 0020b937c6ba3474e67ef87cda41a3afa1b87122 (patch) | |
tree | a48a7119042b5bf0a0cf6257a189adbedf2e9550 /makefiles.patch | |
parent | 883f98628c8ca99dd0c35da8f06c9ef289d8b178 (diff) | |
download | aur-0020b937c6ba3474e67ef87cda41a3afa1b87122.tar.gz |
Link with -Bsymbolic to reduce symbol leak issues
Plenty of internal symbols are exported, with rather generic names that
can (and do) conflict with other libraries. So link with -Bsymbolic,
which prevents overriding them with LD_PRELOAD but also prevents such
conflicts from causing problems with functions here accidentally calling
some other library's functions.
Diffstat (limited to 'makefiles.patch')
-rw-r--r-- | makefiles.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/makefiles.patch b/makefiles.patch index a790cd1c5c20..47fcd588cd9a 100644 --- a/makefiles.patch +++ b/makefiles.patch @@ -30,7 +30,7 @@ index e56323b..fff9e7c 100644 # diff --git i/jni/mdxmini/mak/lib.mak w/jni/mdxmini/mak/lib.mak -index 38af592..bee1432 100644 +index 38af592..c24a1af 100644 --- i/jni/mdxmini/mak/lib.mak +++ w/jni/mdxmini/mak/lib.mak @@ -3,13 +3,13 @@ LIB = $(OBJDIR)/libmdxmini.a @@ -54,7 +54,7 @@ index 38af592..bee1432 100644 $(AR) rcs $@ $(OBJS) +$(OBJDIR)/libmdxmini.so : $(OBJS) -+ $(CC) $(CFLAGS) -shared -o $@ $^ $(LIBS) ++ $(CC) $(CFLAGS) -Wl,-Bsymbolic -shared -o $@ $^ $(LIBS) + $(OBJDIR)/%.o : $(SRCDIR)/%.c $(CC) $(CFLAGS) -o $@ $< -c |