[libpng16] Added symbol prefixing that allows all the libpng external symbols

to be prefixed (suggested by Reuben Hawkins).  This is work in progress that
breaks some non-configure builds.
This commit is contained in:
John Bowler
2012-01-31 07:28:13 -06:00
committed by Glenn Randers-Pehrson
parent 572b078d8c
commit 42369ccd85
10 changed files with 126 additions and 15 deletions

View File

@@ -221,6 +221,16 @@ AC_ARG_WITH(binconfigs,
[binconfigs='${binconfigs}'])
AC_SUBST([binconfigs])
# Support for prefixes to the API function names; this will generate defines
# at the start of the build to rename exported library functions
AC_ARG_WITH(libpng-prefix,
AS_HELP_STRING([[[--with-libpng-prefix]]],
[prefix libpng exported function (API) names with the given value]),
[if test "${withval:-no}" != "no"; then
AC_SUBST([PNG_PREFIX], [${withval}])
fi])
AM_CONDITIONAL([prefix], [test "${with_libpng_prefix:-no}" != "no"])
# Because GCC by default assembles code with an executable stack, even though it
# compiles C code with a non-executable stack, it is necessary to do a fixup
# here (this may by GCC specific)