[devel] Revised Makefile.am to use libpng.sys while building libpng.so

so that only PNG_EXPORT functions are exported.
This commit is contained in:
Glenn Randers-Pehrson
2009-11-12 07:03:54 -06:00
parent bdbade92a7
commit 197c2f3244
13 changed files with 365 additions and 190 deletions

View File

@@ -49,10 +49,12 @@ libpng_la_LDFLAGS = -rpath '$(libdir)' -no-undefined -export-dynamic \
if HAVE_LD_VERSION_SCRIPT
# Versioned symbols and restricted exports
libpng_la_LDFLAGS += -Wl,--version-script=libpng.vers
libpng14_la_LDFLAGS += -Wl,--version-script=libpng.vers
libpng14_la_DEPENDENCIES = libpng.vers
else
# Only restricted exports when possible
libpng_la_LDFLAGS += -export-symbols libpng.sym
libpng14_la_LDFLAGS += -export-symbols libpng.sym
libpng14_la_DEPENDENCIES = libpng.sym
endif