OLD | NEW |
1 ##===- tools/lto/Makefile ----------------------------------*- Makefile -*-===## | 1 ##===- tools/lto/Makefile ----------------------------------*- Makefile -*-===## |
2 # | 2 # |
3 # The LLVM Compiler Infrastructure | 3 # The LLVM Compiler Infrastructure |
4 # | 4 # |
5 # This file is distributed under the University of Illinois Open Source | 5 # This file is distributed under the University of Illinois Open Source |
6 # License. See LICENSE.TXT for details. | 6 # License. See LICENSE.TXT for details. |
7 # | 7 # |
8 ##===----------------------------------------------------------------------===## | 8 ##===----------------------------------------------------------------------===## |
9 | 9 |
10 LEVEL := ../.. | 10 LEVEL := ../.. |
(...skipping 22 matching lines...) Expand all Loading... |
33 -Wl,-compatibility_version -Wl,1 | 33 -Wl,-compatibility_version -Wl,1 |
34 endif | 34 endif |
35 | 35 |
36 # If we're doing an Apple-style build, add the LTO object path. | 36 # If we're doing an Apple-style build, add the LTO object path. |
37 ifeq ($(RC_XBS),YES) | 37 ifeq ($(RC_XBS),YES) |
38 TempFile := $(shell mkdir -p ${OBJROOT}/dSYMs ; mktemp ${OBJROOT}/
dSYMs/llvm-lto.XXXXXX) | 38 TempFile := $(shell mkdir -p ${OBJROOT}/dSYMs ; mktemp ${OBJROOT}/
dSYMs/llvm-lto.XXXXXX) |
39 LLVMLibsOptions := $(LLVMLibsOptions) \ | 39 LLVMLibsOptions := $(LLVMLibsOptions) \ |
40 -Wl,-object_path_lto -Wl,$(TempFile) | 40 -Wl,-object_path_lto -Wl,$(TempFile) |
41 endif | 41 endif |
42 endif | 42 endif |
| 43 |
| 44 #@ LOCALMOD-BEGIN |
| 45 # This is to fix an upstream bug. It is in the process of being upstreamed. |
| 46 # This line can be removed after it has been fixed upstream and we've merged. |
| 47 ifneq ($(HOST_OS),Darwin) |
| 48 LLVMLibsOptions := $(LLVMLibsOptions) -Wl,-soname=$(SharedPrefix)LTO$(SHLIBEXT
) |
| 49 endif |
| 50 #@ LOCALMOD-END |
OLD | NEW |