Added `LINKER=gold` default

Fortune for memfd_secret-shim's current commit: Half blessing − 半吉
master
Avril 4 months ago
parent d5f7af1f3d
commit 2b365f001e
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -33,6 +33,9 @@ INCLUDE_PREFIX := $(PROJECT)/
AR?=ar AR?=ar
RANLIB?=ranlib RANLIB?=ranlib
# Linker to use
LINKER?=gold
# Use gcc-{ar,ranlib} when using gcc # Use gcc-{ar,ranlib} when using gcc
ifeq ($(CXX),g++) ifeq ($(CXX),g++)
AR:=gcc-ar AR:=gcc-ar
@ -120,6 +123,11 @@ COMMON_FLAGS+=$(addsuffix =1,$(addprefix -DFEATURE_,$(__FEATURES)))
# COMMON_FLAGS+=-ffast-math # COMMON_FLAGS+=-ffast-math
#endif #endif
# Add linker
ifneq ($(LINKER),)
COMMON_FLAGS+=-fuse-ld=$(LINKER)
endif
# Arch and optimisation # Arch and optimisation
ifneq ($(ARCH),) ifneq ($(ARCH),)
OPT_FLAGS+= $(addprefix -march=,$(ARCH)) OPT_FLAGS+= $(addprefix -march=,$(ARCH))

Loading…
Cancel
Save