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}"