From f7c9cd06aced12353df678196889cd35aa7ceb5f Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Sat, 17 Apr 2021 21:43:55 +0200 Subject: [PATCH] Ports: Build shared library for libtiff --- Ports/libtiff/package.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Ports/libtiff/package.sh b/Ports/libtiff/package.sh index 258cb25f10..8121611cb8 100755 --- a/Ports/libtiff/package.sh +++ b/Ports/libtiff/package.sh @@ -7,3 +7,10 @@ http://download.osgeo.org/libtiff/tiff-${version}.tar.gz.sig tiff-${version}.tar auth_type="sig" auth_import_key="EBDFDB21B020EE8FD151A88DE301047DE1198975" auth_opts="tiff-${version}.tar.gz.sig tiff-${version}.tar.gz" + +install() { + run make DESTDIR=$DESTDIR $installopts install + ${CC} -shared -o $DESTDIR/usr/local/lib/libtiff.so -Wl,--whole-archive $DESTDIR/usr/local/lib/libtiff.a -Wl,--no-whole-archive + ${CC} -shared -o $DESTDIR/usr/local/lib/libtiffxx.so -Wl,--whole-archive $DESTDIR/usr/local/lib/libtiffxx.a -Wl,--no-whole-archive + rm -f $DESTDIR/usr/local/lib/libtiff.la $DESTDIR/usr/local/lib/libtiffxx.la +}