lutok: move to Lua libraries menu
[buildroot-gz.git] / package / libpng / 0002-Don-t-append-prefix-to-symbol-names-in-version-script.patch
blob2a9bfd1e1d3747d3c0ebcf6aaa6577aea3c4338f
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 [Julien: update for 1.6.25]
16 Signed-off-by: Julien Boibessot <julien.boibessot@armadeus.com>
18 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
19 ---
20 Makefile.am | 2 +-
21 Makefile.in | 2 +-
22 2 files changed, 2 insertions(+), 2 deletions(-)
24 diff --git a/Makefile.am b/Makefile.am
25 index 3430dca..db6a7a2 100644
26 --- a/Makefile.am
27 +++ b/Makefile.am
28 @@ -245,7 +245,7 @@ contrib/tools/pngfix.o: pnglibconf.h
29 # interfering with the symbol file format.
30 SYMBOL_CFLAGS = -DPNGLIB_LIBNAME='PNG@PNGLIB_MAJOR@@PNGLIB_MINOR@_0'\
31 -DPNGLIB_VERSION='@PNGLIB_VERSION@'\
32 - -DSYMBOL_PREFIX='$(SYMBOL_PREFIX)'\
33 + -DSYMBOL_PREFIX=''\
34 -DPNG_NO_USE_READ_MACROS -DPNG_BUILDING_SYMBOL_TABLE
36 if DO_PNG_PREFIX
37 diff --git a/Makefile.in b/Makefile.in
38 index 4e67782..5f468d9 100644
39 --- a/Makefile.in
40 +++ b/Makefile.in
41 @@ -766,7 +766,7 @@ SUFFIXES = .chk .out
42 # interfering with the symbol file format.
43 SYMBOL_CFLAGS = -DPNGLIB_LIBNAME='PNG@PNGLIB_MAJOR@@PNGLIB_MINOR@_0' \
44 -DPNGLIB_VERSION='@PNGLIB_VERSION@' \
45 - -DSYMBOL_PREFIX='$(SYMBOL_PREFIX)' -DPNG_NO_USE_READ_MACROS \
46 + -DSYMBOL_PREFIX='' -DPNG_NO_USE_READ_MACROS \
47 -DPNG_BUILDING_SYMBOL_TABLE $(am__append_7)
49 # EXT_LIST is a list of the possibly library directory extensions, this exists
50 --
51 2.7.3