mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 20:47:45 +00:00
Ports: Replace manually linking libmodplug
with a libtool patch
This commit is contained in:
parent
095eb8194e
commit
07e046cf97
4 changed files with 110 additions and 10 deletions
|
@ -7,11 +7,3 @@ configopts=("ac_cv_c_bigendian=no")
|
|||
files="https://download.sourceforge.net/modplug-xmms/libmodplug-${version}.tar.gz libmodplug-${version}.tar.gz 457ca5a6c179656d66c01505c0d95fafaead4329b9dbaa0f997d00a3508ad9de"
|
||||
auth_type=sha256
|
||||
workdir="libmodplug-$version"
|
||||
|
||||
install() {
|
||||
run make DESTDIR=${SERENITY_INSTALL_ROOT} "${installopts[@]}" install
|
||||
MODPLUG_LIBDIR="${SERENITY_INSTALL_ROOT}/usr/local/lib"
|
||||
${CC} -shared -o ${MODPLUG_LIBDIR}/libmodplug.so.1 -Wl,-soname,libmodplug.so -Wl,--whole-archive ${MODPLUG_LIBDIR}/libmodplug.a -Wl,--no-whole-archive
|
||||
ln -rsf ${MODPLUG_LIBDIR}/libmodplug.so.1 ${MODPLUG_LIBDIR}/libmodplug.so
|
||||
rm -f ${MODPLUG_LIBDIR}/libmodplug.la
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue