diff options
author | Matti Niemenmaa | 2015-05-14 16:59:31 +0300 |
---|---|---|
committer | Matti Niemenmaa | 2015-07-14 16:04:51 +0300 |
commit | 819d07b59ac794609aafd4cacc2f95b4cd1f2c20 (patch) | |
tree | aa194b98abea278cd3260936f76103366c85f9b2 | |
parent | ecfa0bee6f153a0194115a149e59c28957ffab16 (diff) | |
download | aur-819d07b59ac794609aafd4cacc2f95b4cd1f2c20.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.
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 2 | ||||
-rw-r--r-- | makefile.patch | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -15,7 +15,7 @@ pkgbase = lazyusf2-git source = makefile.patch source = LICENSE.CC0 sha256sums = SKIP - sha256sums = 3433556bff919955b1dcae7a86fe5de474e4dda88a44a79872057d3ac54828f7 + sha256sums = 7a48693ef6e9d41d7f0fa93094603b5decad888454a1fc9bbf6de8fdf88e3995 sha256sums = a90051e82202a5dc51162127c6834f8434fb2ece57795317951420fe6a8f4562 pkgname = lazyusf2-git @@ -13,7 +13,7 @@ source=(${pkgname}::git+https://bitbucket.org/kode54/lazyusf2.git makefile.patch LICENSE.CC0) sha256sums=('SKIP' - '3433556bff919955b1dcae7a86fe5de474e4dda88a44a79872057d3ac54828f7' + '7a48693ef6e9d41d7f0fa93094603b5decad888454a1fc9bbf6de8fdf88e3995' 'a90051e82202a5dc51162127c6834f8434fb2ece57795317951420fe6a8f4562') pkgver() { diff --git a/makefile.patch b/makefile.patch index 2c2fb1268631..b3b317a2b9a9 100644 --- a/makefile.patch +++ b/makefile.patch @@ -16,7 +16,7 @@ diff --git i/Makefile w/Makefile $(AR) rcs $@ $^
+liblazyusf.so : $(OBJS)
-+ $(CC) $(CFLAGS) -shared -lm -lz -o $@ $^
++ $(CC) $(CFLAGS) -Wl,-Bsymbolic -shared -lm -lz -o $@ $^
+
bench : test/bench.o liblazyusf.a
$(CC) -o $@ $^ ../psflib/libpsflib.a -lz
|