From 11af370fe19093a2225b582f4013204036e45016 Mon Sep 17 00:00:00 2001 From: DubbleClick Date: Tue, 17 Oct 2023 19:43:54 +0200 Subject: [PATCH] remove useless softlink libpng.a (pointing to libpng16.a), causes imagick build failure if freetype or png is enabled --- src/SPC/builder/linux/library/libpng.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/SPC/builder/linux/library/libpng.php b/src/SPC/builder/linux/library/libpng.php index 81456389..d66b3282 100644 --- a/src/SPC/builder/linux/library/libpng.php +++ b/src/SPC/builder/linux/library/libpng.php @@ -67,7 +67,6 @@ class libpng extends LinuxLibraryBase ->exec('chmod +x ./install-sh') ->exec( "{$this->builder->configure_env} ./configure " . - "--host={$this->builder->getOption('gnu-arch')}-unknown-linux " . '--disable-shared ' . '--enable-static ' . '--enable-hardware-optimizations ' . @@ -77,9 +76,7 @@ class libpng extends LinuxLibraryBase ) ->exec('make clean') ->exec("make -j{$this->builder->concurrency} DEFAULT_INCLUDES='-I. -I" . BUILD_INCLUDE_PATH . "' LIBS= libpng16.la") - ->exec('make install-libLTLIBRARIES install-data-am DESTDIR=' . BUILD_ROOT_PATH) - ->cd(BUILD_LIB_PATH) - ->exec('ln -sf libpng16.a libpng.a'); + ->exec('make install-libLTLIBRARIES install-data-am DESTDIR=' . BUILD_ROOT_PATH); $this->patchPkgconfPrefix(['libpng16.pc'], PKGCONF_PATCH_PREFIX); $this->cleanLaFiles(); }