From 93a93e9a3b53c1a73142a305ea1f8136846942ee Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 22 Dec 2021 14:08:05 +0000 Subject: gentoo resync : 22.12.2021 --- .../mold/files/mold-0.9.6-respect-flags.patch | 49 ---------------------- 1 file changed, 49 deletions(-) delete mode 100644 sys-devel/mold/files/mold-0.9.6-respect-flags.patch (limited to 'sys-devel/mold/files') diff --git a/sys-devel/mold/files/mold-0.9.6-respect-flags.patch b/sys-devel/mold/files/mold-0.9.6-respect-flags.patch deleted file mode 100644 index 270a28988f9d..000000000000 --- a/sys-devel/mold/files/mold-0.9.6-respect-flags.patch +++ /dev/null @@ -1,49 +0,0 @@ -From: Sam James -Date: Fri, 29 Oct 2021 22:50:40 +0100 -Subject: [PATCH] Respect *FLAGS - ---- a/Makefile -+++ b/Makefile -@@ -10,10 +10,11 @@ GIT_HASH ?= $(shell [ -d .git ] && git rev-parse HEAD) - - OS ?= $(shell uname -s) - --CPPFLAGS = -g -pthread -std=c++20 -fPIE \ -- -DMOLD_VERSION=\"0.9.6\" \ -- -DGIT_HASH=\"$(GIT_HASH)\" \ -- $(EXTRA_CPPFLAGS) -+CFLAGS = -pthread -fPIE $(EXTRA_CFLAGS) -+CXXFLAGS = -pthread -std=c++20 -fPIE $(EXTRA_CXXFLAGS) -+CPPFLAGS = -DMOLD_VERSION=\"0.9.6\" \ -+ -DGIT_HASH=\"$(GIT_HASH)\" \ -+ $(EXTRA_CPPFLAGS) - LDFLAGS += $(EXTRA_LDFLAGS) - LIBS = -pthread -lz -lxxhash -ldl -lm - -@@ -28,12 +29,6 @@ LTO ?= 0 - ASAN ?= 0 - TSAN ?= 0 - --ifeq ($(DEBUG), 1) -- CPPFLAGS += -O0 --else -- CPPFLAGS += -O2 --endif -- - ifeq ($(LTO), 1) - CPPFLAGS += -flto -O3 - LDFLAGS += -flto -@@ -73,11 +68,11 @@ endif - all: mold mold-wrapper.so - - mold: $(OBJS) $(MIMALLOC_LIB) $(TBB_LIB) -- $(CXX) $(CXXFLAGS) $(OBJS) -o $@ $(LDFLAGS) $(LIBS) -+ $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(LIBS) - ln -sf mold ld - - mold-wrapper.so: elf/mold-wrapper.c Makefile -- $(CC) -fPIC -shared -o $@ $< -ldl -+ $(CC) $(CPPFLAGS) $(CFLAGS) -fPIC -shared -o $@ $(LDFLAGS) $< -ldl - - $(OBJS): $(HEADERS) Makefile - -- cgit v1.2.3