Files
termux-packages/packages/libtsduck/scripts-make-config.sh.patch
termux-pacman-bot f77c3f2257 bump(main/libtsduck): 3.42.4421
STRIP environment variable was changed in this upstream commit which
does not work with arm binaries.
96904a7512
2025-09-29 16:05:28 +00:00

23 lines
618 B
Diff

--- a/scripts/make-config.sh
+++ b/scripts/make-config.sh
@@ -475,7 +475,9 @@
[[ -z $GCC ]] && GCC=gcc
# The strip command tries to remove global symbols on macOS.
-[[ -n $MACOS ]] && STRIP="strip -x" || STRIP="strip"
+if [[ -z $STRIP ]]; then
+ [[ -n $MACOS ]] && STRIP="strip -x" || STRIP="strip"
+fi
# Define compilation flags for 32-bit cross-compilation.
if [[ -n $M32 ]]; then
@@ -602,7 +604,7 @@
[[ -z $MACOS ]] && LDFLAGS_PTHREAD="-pthread"
# External libraries
-LDLIBS="$LDLIBS -lpthread"
+LDLIBS="$LDLIBS -lc++_shared"
[[ -z $MACOS$OPENBSD ]] && LDLIBS="$LDLIBS -lrt"
LDLIBS="$LDLIBS -lm"