Blame view

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