From 64fe3faa572f1dc55d78517b5392ab6329e48883 Mon Sep 17 00:00:00 2001 From: Nathan Lanza Date: Sat, 24 Feb 2018 14:52:05 -0800 Subject: [PATCH] add a path to TARGET_LDFLAGS to account for architecture specific library paths --- lib/script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/script.py b/lib/script.py index 550b04d29d..64cdd10cfe 100644 --- a/lib/script.py +++ b/lib/script.py @@ -135,7 +135,7 @@ def generate_products(self): EXTRA_LD_FLAGS = """ + Configuration.current.extra_ld_flags ld_flags += """ -TARGET_LDFLAGS = --target=${TARGET} ${EXTRA_LD_FLAGS} -L${SDKROOT}/lib/swift/""" + Configuration.current.target.swift_sdk_name + """ """ +TARGET_LDFLAGS = --target=${TARGET} ${EXTRA_LD_FLAGS} -L ${SDKROOT}/lib/swift/""" + Configuration.current.target.swift_sdk_name + """/${ARCH} -L${SDKROOT}/lib/swift/""" + Configuration.current.target.swift_sdk_name + """ """ if Configuration.current.system_root is not None: ld_flags += "--sysroot=${SYSROOT}"