Skip to content

Commit 89c3bab

Browse files
committed
Pass user-defined LDFLAGS in build/compile.sh
This is required on Android where glob is not in the standard library. See termux/termux-packages#104.
1 parent e949926 commit 89c3bab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build/compile.sh

+2
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ BASE_LDFLAGS=''
165165
# The user should be able to customize CFLAGS, but it shouldn't disable what's
166166
# in BASE_CFLAGS.
167167
readonly CFLAGS=${CFLAGS:-}
168+
readonly LDFLAGS=${LDFLAGS:-}
168169

169170
build() {
170171
local out=${1:-$PY27/ovm2}
@@ -223,6 +224,7 @@ build() {
223224
Modules/ovm.c \
224225
-l m \
225226
${BASE_LDFLAGS} \
227+
${LDFLAGS} \
226228
$readline_flags \
227229
"$@" \
228230
|| true

0 commit comments

Comments
 (0)