libpng: bump to version 1.6.22
[buildroot-gz.git] / package / libpng / 0002-Don-t-append-prefix-to-symbol-names-in-version-script.patch
blob0754e21381590083357d992feb12403dd390dedd
1 From 473fdecd9a580b45251480b8ccbbb1927c598310 Mon Sep 17 00:00:00 2001
2 From: Gustavo Zacarias <gustavo@zacarias.com.ar>
3 Date: Thu, 26 May 2016 16:27:13 -0300
4 Subject: [PATCH] Don't append prefix to symbol names in version script
6 Even if Blackfin GNU toolchain add prefix '_' to all symbols,
7 symbol prefix is not accepted in the link flag --version-script.
8 Don't append prefix in the symbols in the version script file.
10 Original patch by: Sonic Zhang <sonic.zhang@analog.com>
12 [Gustavo: update for 1.6.22]
13 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
15 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
16 ---
17 Makefile.am | 2 +-
18 Makefile.in | 2 +-
19 2 files changed, 2 insertions(+), 2 deletions(-)
21 diff --git a/Makefile.am b/Makefile.am
22 index 3430dca..db6a7a2 100644
23 --- a/Makefile.am
24 +++ b/Makefile.am
25 @@ -236,7 +236,7 @@ contrib/tools/pngfix.o: pnglibconf.h
26 # interfering with the symbol file format.
27 SYMBOL_CFLAGS = -DPNGLIB_LIBNAME='PNG@PNGLIB_MAJOR@@PNGLIB_MINOR@_0'\
28 -DPNGLIB_VERSION='@PNGLIB_VERSION@'\
29 - -DSYMBOL_PREFIX='$(SYMBOL_PREFIX)'\
30 + -DSYMBOL_PREFIX=''\
31 -DPNG_NO_USE_READ_MACROS -DPNG_BUILDING_SYMBOL_TABLE
33 if DO_PNG_PREFIX
34 diff --git a/Makefile.in b/Makefile.in
35 index 4e67782..5f468d9 100644
36 --- a/Makefile.in
37 +++ b/Makefile.in
38 @@ -754,7 +754,7 @@ SUFFIXES = .chk .out
39 # interfering with the symbol file format.
40 SYMBOL_CFLAGS = -DPNGLIB_LIBNAME='PNG@PNGLIB_MAJOR@@PNGLIB_MINOR@_0' \
41 -DPNGLIB_VERSION='@PNGLIB_VERSION@' \
42 - -DSYMBOL_PREFIX='$(SYMBOL_PREFIX)' -DPNG_NO_USE_READ_MACROS \
43 + -DSYMBOL_PREFIX='' -DPNG_NO_USE_READ_MACROS \
44 -DPNG_BUILDING_SYMBOL_TABLE $(am__append_6)
46 # EXT_LIST is a list of the possibly library directory extensions, this exists
47 --
48 2.7.3