equal
deleted
inserted
replaced
|
1 # Solaris autoconf-based build. |
|
2 # https://llvm.org/bugs/show_bug.cgi?id=24641 |
|
3 --- tools/clang/tools/libclang/Makefile 2014-10-29 11:55:09.000000000 -0700 |
|
4 +++ tools/clang/tools/libclang/Makefile 2015-06-10 15:18:27.471754914 -0700 |
|
5 @@ -33,10 +33,16 @@ |
|
6 include $(CLANG_LEVEL)/Makefile |
|
7 |
|
8 # Add soname to the library. |
|
9 -ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux FreeBSD GNU GNU/kFreeBSD)) |
|
10 +ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux FreeBSD GNU GNU/kFreeBSD SunOS)) |
|
11 LLVMLibsOptions += -Wl,-soname,lib$(LIBRARYNAME)$(SHLIBEXT) |
|
12 endif |
|
13 |
|
14 +# Extract everything necessary from Solaris *.a archives |
|
15 +ifeq ($(HOST_OS), $(filter $(HOST_OS), SunOS)) |
|
16 + SharedLinkOptions += -Wl,-z -Wl,rescan-now -Wl,-z -Wl,allextract |
|
17 + LLVMLibsOptions += -Wl,-z -Wl,defaultextract |
|
18 +endif |
|
19 + |
|
20 ifeq ($(ENABLE_CLANG_ARCMT),1) |
|
21 CXX.Flags += -DCLANG_ENABLE_ARCMT |
|
22 endif |