summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorSonic Zhang <sonic.zhang@analog.com>2013-12-30 18:35:53 +0800
committerPeter Korsgaard <peter@korsgaard.com>2014-01-14 23:01:33 +0100
commit46912f15c0cf4ceda1db6c2e390962707748296b (patch)
treedc3154274863419874a15dcffd68ff02b6177357 /package
parent0fff2505ebfc5deb7689ab33ca4684fc2f936488 (diff)
package: libpng: don't append prefix to symbol names in the version script file
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. Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package')
-rw-r--r--package/libpng/libpng-02-ignore-symbol-prefix.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/package/libpng/libpng-02-ignore-symbol-prefix.patch b/package/libpng/libpng-02-ignore-symbol-prefix.patch
new file mode 100644
index 000000000..7f2cfff24
--- /dev/null
+++ b/package/libpng/libpng-02-ignore-symbol-prefix.patch
@@ -0,0 +1,26 @@
+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.
+
+--- libpng-1.6.8/Makefile.am 2013-12-30 18:23:08.261797417 +0800
++++ libpng-1.6.8.bak/Makefile.am 2013-12-30 18:22:15.565795726 +0800
+@@ -225,7 +225,7 @@
+ # 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
+--- libpng-1.6.8/Makefile.in 2013-12-30 18:23:08.261797417 +0800
++++ libpng-1.6.8.bak/Makefile.in 2013-12-30 18:22:09.853794547 +0800
+@@ -698,7 +698,7 @@
+ # 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_5)
+ all: $(BUILT_SOURCES) config.h
+ $(MAKE) $(AM_MAKEFLAGS) all-am