remove useless softlink libpng.a (pointing to libpng16.a), causes imagick build failure if freetype or png is enabled

This commit is contained in:
DubbleClick 2023-10-17 19:43:54 +02:00 committed by Jerry Ma
parent 1e11559c4b
commit 11af370fe1

View File

@ -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();
}