From 65dd06d70ae1ad7d0f196dd625ad76aadd636568 Mon Sep 17 00:00:00 2001 From: dustin Date: Thu, 24 Aug 2023 11:05:08 -0400 Subject: [PATCH] LINUX: appimage build - treat libm like libc (#813) --- misc/appimage/appimage-manual_creation.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misc/appimage/appimage-manual_creation.sh b/misc/appimage/appimage-manual_creation.sh index b0fcd5ba9..c381e7475 100755 --- a/misc/appimage/appimage-manual_creation.sh +++ b/misc/appimage/appimage-manual_creation.sh @@ -34,7 +34,7 @@ int main(){ ' QUAKE_SCRIPT='#!/usr/bin/env bash -export LD_LIBRARY_PATH="${APPIMAGE_LIBRARY_PATH}:${APPDIR}/usr/lib" +export LD_LIBRARY_PATH="${APPIMAGE_LIBRARY_PATH}:${APPDIR}/usr/lib:${LD_LIBRARY_PATH}" cd "$OWD" "${APPDIR}/usr/bin/test" >/dev/null 2>&1 |: FAIL=${PIPESTATUS[0]} @@ -92,6 +92,7 @@ ldd "$DIR/AppDir/usr/bin/ezquake-linux-$ARCH" | \ strip -s "$DIR/AppDir/usr/lib/"* || exit 5 strip -s "$DIR/AppDir/usr/bin/"* || exit 5 mv -f "$DIR/AppDir/usr/lib/libc.so.6" "$DIR/AppDir/usr/lib-override/." +mv -f "$DIR/AppDir/usr/lib/libm.so.6" "$DIR/AppDir/usr/lib-override/." cp -Lf "/lib64/ld-linux-${ARCHDASH}.so.2" "$DIR/AppDir/usr/lib-override/." || exit 6 cd "$DIR" || exit 5