mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-28 21:52:39 +00:00
STRIP environment variable was changed in this upstream commit which
does not work with arm binaries.
96904a7512
23 lines
618 B
Diff
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"
|
|
|