mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
d3c03ce67a
This fixes build issues [1] and makes swiftc work [2]. But swiftpm is still not working, hopefully soon. PR: 210284 [1] PR: 210386 [2] Reported by: Lacey Powers <lacey.leanne@gmail.com> [1] Reported by: Tom Pusateri <pusateri@bangj.com> [2]
17 lines
845 B
Plaintext
17 lines
845 B
Plaintext
--- swift/utils/build-script-impl.orig 2017-03-28 05:42:53.000000000 +0000
|
|
+++ swift/utils/build-script-impl 2017-04-23 23:59:13.869062000 +0000
|
|
@@ -1948,8 +1948,11 @@ for host in "${ALL_HOSTS[@]}"; do
|
|
# gold linker support.
|
|
cmake_options=(
|
|
"${cmake_options[@]}"
|
|
- -DCMAKE_EXE_LINKER_FLAGS:STRING="-fuse-ld=gold"
|
|
- -DCMAKE_SHARED_LINKER_FLAGS:STRING="-fuse-ld=gold"
|
|
+ -DCMAKE_EXE_LINKER_FLAGS:STRING="-L/usr/local/lib -fuse-ld=gold"
|
|
+ -DCMAKE_SHARED_LINKER_FLAGS:STRING="-L/usr/local/lib -fuse-ld=gold"
|
|
+ -DCMAKE_CPP_COMPILER=%%CPP_ONLY%%
|
|
+ -DCMAKE_C_COMPILER=%%CC_ONLY%%
|
|
+ -DCMAKE_CXX_COMPILER=%%CXX_ONLY%%
|
|
)
|
|
fi
|
|
else
|