Skip to content

Commit

Permalink
Merge pull request #27 from isuruf/lto_linux
Browse files Browse the repository at this point in the history
Fix LTO on linux
  • Loading branch information
isuruf committed Aug 14, 2020
2 parents 3ad6bf6 + c80a736 commit 4aaacaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fi
export cctools_cv_tapi_support=yes

pushd cctools
LLVM_LTO_LIBRARY=$(find $PREFIX/lib -name "libLTO*${SHLIB_EXT}")
LLVM_LTO_LIBRARY=$(find $PREFIX/lib -name "libLTO.*.*")
LLVM_LTO_LIBRARY="$(basename $LLVM_LTO_LIBRARY)"
sed -i.bak "s/libLTO.dylib/${LLVM_LTO_LIBRARY}/g" ld64/src/ld/InputFiles.cpp
sed -i.bak "s@llvm/libLTO.so@${LLVM_LTO_LIBRARY}@g" ld64/src/ld/InputFiles.cpp
Expand Down
2 changes: 1 addition & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ source:
- 530-ld64-add-conda-specific-env-vars-to-modify-lib-search-paths.patch

build:
number: 4
number: 7
skip: True # [win]
ignore_run_exports:
- zlib
Expand Down

0 comments on commit 4aaacaf

Please sign in to comment.