~pali/llvm/llvm-toolchain-3.9-packaging

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: sylvestre
  • Date: 2017-09-08 10:01:09 UTC
  • Revision ID: svn-v4:670adf90-79fe-46c2-b027-9eb1e76e7c7d:llvm-toolchain/branches/3.9:2776
Link with --no-keep-files-mapped --no-map-whole-files when using gold.

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
ifeq ($(shell dpkg --compare-versions $(shell dpkg-query -W -f '$${Version}' binutils) ge 2.23.1-1~exp3 ; echo $$?),0)
85
85
ifneq (,$(filter $(DEB_HOST_ARCH),$(BINUTILS_GOLD_ARCHS)))
86
86
# -fused-ld=gold enables the gold linker (but is not supported by all archs / distro)
87
 
        LDFLAGS_EXTRA += -fuse-ld=gold
88
 
        CXXFLAGS_EXTRA += -Wl,-fuse-ld=gold
 
87
        LDFLAGS_EXTRA += -fuse-ld=gold --no-keep-files-mapped --no-map-whole-files
 
88
        CXXFLAGS_EXTRA += -Wl,-fuse-ld=gold -Wl,--no-keep-files-mapped -Wl,--no-map-whole-files
89
89
        CMAKE_EXTRA += -DLLVM_BINUTILS_INCDIR=/usr/include/
90
90
endif
91
91
endif