mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-06-12 19:31:07 +00:00
Link with --no-keep-files-mapped --no-map-whole-files when using gold.
This commit is contained in:
parent
c2179a304d
commit
7e366d9354
7
debian/changelog
vendored
7
debian/changelog
vendored
@ -1,3 +1,10 @@
|
||||
llvm-toolchain-4.0 (1:5.0-1~exp2) UNRELEASED; urgency=medium
|
||||
|
||||
[ Matthias Klose ]
|
||||
* Link with --no-keep-files-mapped --no-map-whole-files when using gold.
|
||||
|
||||
-- Sylvestre Ledru <sylvestre@debian.org> Fri, 08 Sep 2017 11:59:03 +0200
|
||||
|
||||
llvm-toolchain-4.0 (1:4.0.1-4) unstable; urgency=medium
|
||||
|
||||
* Fail the build if the arch + gcc has a broken gsplit-dwarf support
|
||||
|
4
debian/rules
vendored
4
debian/rules
vendored
@ -86,8 +86,8 @@ BINUTILS_GOLD_ARCHS := amd64 armhf i386 powerpcspe ppc64 ppc64el sparc sparc64 x
|
||||
ifeq ($(shell dpkg --compare-versions $(shell dpkg-query -W -f '$${Version}' binutils) ge 2.23.1-1~exp3 ; echo $$?),0)
|
||||
ifneq (,$(filter $(DEB_HOST_ARCH),$(BINUTILS_GOLD_ARCHS)))
|
||||
# -fused-ld=gold enables the gold linker (but is not supported by all archs / distro)
|
||||
LDFLAGS_EXTRA += -fuse-ld=gold
|
||||
CXXFLAGS_EXTRA += -Wl,-fuse-ld=gold
|
||||
LDFLAGS_EXTRA += -fuse-ld=gold --no-keep-files-mapped --no-map-whole-files
|
||||
CXXFLAGS_EXTRA += -Wl,-fuse-ld=gold -Wl,--no-keep-files-mapped -Wl,--no-map-whole-files
|
||||
CMAKE_EXTRA += -DLLVM_BINUTILS_INCDIR=/usr/include/
|
||||
endif
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user