package/dhcp/S80dhcp-server: allow empty INTERFACES
[buildroot-gz.git] / package / libpng / 0002-ignore-symbol-prefix.patch
blob5a8ede58a9e2470d01ad63913933e88ed80a576d
1 From dbfea83a7436cbac34cc883ab2b7befacaf02c40 Mon Sep 17 00:00:00 2001
2 From: Danomi Manchego <danomimanchego123@gmail.com>
3 Date: Tue, 23 Jun 2015 13:54:42 -0400
4 Subject: libpng: 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 Rebase to apply cleanly.
14 Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com>
15 ---
16 Makefile.am | 2 +-
17 Makefile.in | 2 +-
18 2 files changed, 2 insertions(+), 2 deletions(-)
20 diff --git a/Makefile.am b/Makefile.am
21 index dcc5439..e543c81 100644
22 --- a/Makefile.am
23 +++ b/Makefile.am
24 @@ -231,7 +231,7 @@ contrib/tools/pngfix.o: pnglibconf.h
25 # interfering with the symbol file format.
26 SYMBOL_CFLAGS = -DPNGLIB_LIBNAME='PNG@PNGLIB_MAJOR@@PNGLIB_MINOR@_0'\
27 -DPNGLIB_VERSION='@PNGLIB_VERSION@'\
28 - -DSYMBOL_PREFIX='$(SYMBOL_PREFIX)'\
29 + -DSYMBOL_PREFIX=''\
30 -DPNG_NO_USE_READ_MACROS -DPNG_BUILDING_SYMBOL_TABLE
32 if DO_PNG_PREFIX
33 diff --git a/Makefile.in b/Makefile.in
34 index 975f931..a3e0552 100644
35 --- a/Makefile.in
36 +++ b/Makefile.in
37 @@ -747,7 +747,7 @@ SUFFIXES = .chk .out
38 # interfering with the symbol file format.
39 SYMBOL_CFLAGS = -DPNGLIB_LIBNAME='PNG@PNGLIB_MAJOR@@PNGLIB_MINOR@_0' \
40 -DPNGLIB_VERSION='@PNGLIB_VERSION@' \
41 - -DSYMBOL_PREFIX='$(SYMBOL_PREFIX)' -DPNG_NO_USE_READ_MACROS \
42 + -DSYMBOL_PREFIX='' -DPNG_NO_USE_READ_MACROS \
43 -DPNG_BUILDING_SYMBOL_TABLE $(am__append_5)
45 # EXT_LIST is a list of the possibly library directory extensions, this exists
46 --
47 1.7.9.5