summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-07-08 16:46:01 +0200
committerRichard Braun <rbraun@sceen.net>2018-07-08 16:49:11 +0200
commit2daf0c73f09804588642d53d111495048a9c5886 (patch)
tree62dfd1ad1f8dcc9ecf5ea1724b5f6b9d04d680ba /Makefile
parent99a5fdb17604c0816420ef3d126beab81fc41365 (diff)
Make linking against libgcc a global requirement
Linking against libgcc was made a per-architecture option for convenience reasons, an in particular because the kernel didn't have support for the red zone required by the AMD64 ABI. But lacking the compiler companion library proved to be problematic early after, so red zone support was implemented, and libgcc is now unconditionnally linked again.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a5402992..c7a44fbd 100644
--- a/Makefile
+++ b/Makefile
@@ -282,7 +282,7 @@ XBUILD_CFLAGS += -Wno-unneeded-internal-declaration
XBUILD_CFLAGS += $(call xbuild_check_cc_option,-fno-PIE)
XBUILD_CFLAGS += $(call xbuild_check_cc_option,-Qunused-arguments)
-XBUILD_LDFLAGS += -static -nostdlib
+XBUILD_LDFLAGS += -static -nostdlib -lgcc
# Disable the build ID feature of the linker
XBUILD_LDFLAGS += -Wl,--build-id=none