2016-05-26 21:33:47 +02:00
|
|
|
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
|
2015-06-25 05:23:48 +02:00
|
|
|
|
2013-12-30 11:35:53 +01:00
|
|
|
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.
|
|
|
|
|
2015-06-25 05:23:48 +02:00
|
|
|
Original patch by: Sonic Zhang <sonic.zhang@analog.com>
|
|
|
|
|
2016-05-26 21:33:47 +02:00
|
|
|
[Gustavo: update for 1.6.22]
|
|
|
|
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
2015-06-25 05:23:48 +02:00
|
|
|
|
2016-05-26 21:33:47 +02:00
|
|
|
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
2015-06-25 05:23:48 +02:00
|
|
|
---
|
2016-05-26 21:33:47 +02:00
|
|
|
Makefile.am | 2 +-
|
|
|
|
Makefile.in | 2 +-
|
2015-06-25 05:23:48 +02:00
|
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/Makefile.am b/Makefile.am
|
2016-05-26 21:33:47 +02:00
|
|
|
index 3430dca..db6a7a2 100644
|
2015-06-25 05:23:48 +02:00
|
|
|
--- a/Makefile.am
|
|
|
|
+++ b/Makefile.am
|
2016-05-26 21:33:47 +02:00
|
|
|
@@ -236,7 +236,7 @@ contrib/tools/pngfix.o: pnglibconf.h
|
2013-12-30 11:35:53 +01:00
|
|
|
# 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
|
2015-06-25 05:23:48 +02:00
|
|
|
diff --git a/Makefile.in b/Makefile.in
|
2016-05-26 21:33:47 +02:00
|
|
|
index 4e67782..5f468d9 100644
|
2015-06-25 05:23:48 +02:00
|
|
|
--- a/Makefile.in
|
|
|
|
+++ b/Makefile.in
|
2016-05-26 21:33:47 +02:00
|
|
|
@@ -754,7 +754,7 @@ SUFFIXES = .chk .out
|
2013-12-30 11:35:53 +01:00
|
|
|
# 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 \
|
2016-05-26 21:33:47 +02:00
|
|
|
-DPNG_BUILDING_SYMBOL_TABLE $(am__append_6)
|
2015-06-25 05:23:48 +02:00
|
|
|
|
|
|
|
# EXT_LIST is a list of the possibly library directory extensions, this exists
|
|
|
|
--
|
2016-05-26 21:33:47 +02:00
|
|
|
2.7.3
|
2015-06-25 05:23:48 +02:00
|
|
|
|