From e72e49a09008046f0d69b4438444dfe4ea462266 Mon Sep 17 00:00:00 2001 From: Kunhoon Baik Date: Wed, 8 Sep 2021 11:12:18 +0900 Subject: [PATCH] Add mthumb option to Linker flag For supporting mthumb (+lto) in compiler 9.2, -mthumb should be also applied to "link flags" --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index cb22a93..98bf088 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,7 @@ COMMON_FLAGS += -O2 -c \ CXXFLAGS += $(USER_DEFINES) $(COMMON_FLAGS) $(shell pkg-config --cflags protobuf) \ -std=c++11 -fno-exceptions -Wno-unused -Wno-unused-parameter -LDFLAGS += -pie -Wl,-z,noexecstack -lpthread $(shell pkg-config --libs protobuf) +LDFLAGS += -pie -Wl,-z,noexecstack -mthumb -lpthread $(shell pkg-config --libs protobuf) BIN = nsjail LIBS = kafel/libkafel.a -- 2.34.1