Skip to content

Commit 576e6d9

Browse files
committed
Merge pull request #197 from lhoward/lhoward/SR-404
[SR-404]: use linker script to export protocol conformances start
2 parents 1668193 + 41eb1b7 commit 576e6d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515

1616
if Configuration.current.target.sdk == OSType.Linux:
1717
foundation.CFLAGS = '-DDEPLOYMENT_TARGET_LINUX -D_GNU_SOURCE '
18-
foundation.LDFLAGS = '-Wl,@./CoreFoundation/linux.ld -lswiftGlibc `icu-config --ldflags` -Wl,-defsym,__CFConstantStringClassReference=_TMC10Foundation19_NSCFConstantString '
18+
foundation.LDFLAGS = '-Wl,@./CoreFoundation/linux.ld -Xlinker -T ${SDKROOT}/lib/swift/linux/${ARCH}/swift.ld -lswiftGlibc `icu-config --ldflags` -Wl,-defsym,__CFConstantStringClassReference=_TMC10Foundation19_NSCFConstantString '
19+
1920
elif Configuration.current.target.sdk == OSType.FreeBSD:
2021
foundation.CFLAGS = '-DDEPLOYMENT_TARGET_FREEBSD -I/usr/local/include -I/usr/local/include/libxml2 '
2122
foundation.LDFLAGS = ''

0 commit comments

Comments
 (0)