Skip to content

Commit d4b2f70

Browse files
author
2b57
committed
fix make.defaults
1 parent 1bd908c commit d4b2f70

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

profiles/features/clang/make.defaults

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,23 @@
22
CC="clang"
33
CXX="clang++"
44

5-
# call Clang to link, it will invoke lld if needed
6-
# from man clang:
7-
# The clang executable is actually a small driver which controls the overall
8-
# execution of other tools such as the compiler, assembler and linker.
9-
# Typically you do not need to interact with the driver, but you transparently
10-
# use it to run the other tools
11-
LD="clang"
5+
# this works with libtool
6+
LD="ld.lld"
127

138
# some linker flags
149
LDFLAGS="-fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind -Wl,--as-needed"
1510

1611
# use LLVM-provided binutils
1712
AR="llvm-ar"
13+
AS="llvm-as"
1814
NM="llvm-nm"
15+
STRIP="llvm-strip"
1916
RANLIB="llvm-ranlib"
17+
OBJCOPY="llvm-objcopy"
18+
STRINGS="llvm-strings"
19+
OBJDUMP="llvm-objdump"
20+
READELF="llvm-readelf"
21+
ADDR2LINE="llvm-addr2line"
2022

2123
# curl needed by cmake
2224
BOOTSTRAP_USE="$BOOTSTRAP_USE ssl curl_ssl_openssl"

0 commit comments

Comments
 (0)