summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package/musl/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/musl/Makefile b/package/musl/Makefile
index 3c3da3f3e..d786300fa 100644
--- a/package/musl/Makefile
+++ b/package/musl/Makefile
@@ -26,7 +26,7 @@ CONFIG_STYLE:= manual
BUILD_STYLE:= manual
INSTALL_STYLE:= manual
-MUSL_LD_SO:= "`echo 'void main(void) {}' |${TARGET_CC} -x c -o \
+MUSL_LD_SO:= "`echo 'void main(void) {}' |${TARGET_CC} ${TARGET_CFLAGS} -x c -o \
$(BUILD_DIR)/.musl.tmp - >/dev/null 2>&1 ;\
${TARGET_COMPILER_PREFIX}readelf -l $(BUILD_DIR)/.musl.tmp 2>/dev/null \
| grep 'program interpreter: /lib/ld-musl' | sed -e 's|.*lib/||'|sed -e 's|]||' ;\