mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 13:47:46 +00:00
Ports: Replace manually linking libxml2
with a libtool patch
This commit is contained in:
parent
9213ed85f0
commit
834e0ee614
3 changed files with 93 additions and 9 deletions
|
@ -6,12 +6,4 @@ use_fresh_config_sub=true
|
|||
files="https://download.gnome.org/sources/libxml2/2.9/libxml2-${version}.tar.xz libxml2-${version}.tar.xz 276130602d12fe484ecc03447ee5e759d0465558fbc9d6bd144e3745306ebf0e"
|
||||
auth_type=sha256
|
||||
depends=("libiconv" "xz")
|
||||
configopts=("--with-sysroot=${SERENITY_INSTALL_ROOT}" "--prefix=/usr/local" "--without-python")
|
||||
|
||||
install() {
|
||||
run make DESTDIR="${SERENITY_INSTALL_ROOT}" install
|
||||
|
||||
# Link shared library
|
||||
run ${SERENITY_ARCH}-pc-serenity-gcc -shared -o ${SERENITY_INSTALL_ROOT}/usr/local/lib/libxml2.so -Wl,-soname,libxml2.so -Wl,--whole-archive ${SERENITY_INSTALL_ROOT}/usr/local/lib/libxml2.a -Wl,--no-whole-archive -llzma
|
||||
rm -f ${SERENITY_INSTALL_ROOT}/usr/local/lib/libxml2.la
|
||||
}
|
||||
configopts=("--with-sysroot=${SERENITY_INSTALL_ROOT}" "--prefix=/usr/local" "--without-python" "--disable-static" "--enable-shared")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue