]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Add support for symbol prefix to linker definition files.
authorMika Lindqvist <postmaster@raasu.org>
Sat, 21 Jan 2023 22:59:08 +0000 (00:59 +0200)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Thu, 2 Feb 2023 16:34:12 +0000 (17:34 +0100)
configure

index 3879134b8beaa2a40b7f68c777795b3908d9fd58..fa751b84ff3530007e041d4b26bfd4974c40c28a 100755 (executable)
--- a/configure
+++ b/configure
@@ -857,6 +857,11 @@ if test $compat -eq 1; then
   esac
 fi
 
+if [[ ! -z $DEFFILE ]]; then
+  mkdir -p win32
+  sed < $SRCDIR/$DEFFILE.in "s/@ZLIB_SYMBOL_PREFIX@/$symbol_prefix/g" > $DEFFILE
+fi
+
 # if --gzfileops was requested
 if test $gzfileops -eq 1; then
   CFLAGS="${CFLAGS} -DWITH_GZFILEOP"