Merge pull request #1457 from lanza/skinnypaths.foundation
add a linker search path to account for library path changes to platforms without fat binaries
diff --git a/lib/script.py b/lib/script.py
index 550b04d..64cdd10 100644
--- a/lib/script.py
+++ b/lib/script.py
@@ -135,7 +135,7 @@
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}"