From acacb633e92c2c7facc11a9c18e6dda16c044e95 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Wed, 15 Nov 2023 09:56:37 +0100 Subject: Partial SEH support. * Removed linker script; .edata *and* .pdata required by MingW for SEH. * Removed buggy `-fdata-sections` and `-ffunction-sections`. Signed-off-by: Toni Uhlig --- Makefile.native.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Makefile.native.inc') diff --git a/Makefile.native.inc b/Makefile.native.inc index b24425a..d2293af 100644 --- a/Makefile.native.inc +++ b/Makefile.native.inc @@ -21,7 +21,6 @@ CXX = /usr/bin/c++ AR = /usr/bin/ar CFLAGS := -Wall -Wextra -Wno-sign-compare -Wno-strict-aliasing -Wno-c++20-compat \ -m64 -fPIC -fvisibility=hidden \ - -ffunction-sections -fdata-sections \ -I$(DPP_ROOT)/CRT -DNATIVE=1 ifneq ($(WERROR),) CFLAGS += -Werror @@ -68,7 +67,7 @@ define BUILD_C_OBJECT $(call CHECK_REQUIRED_PATHS) $(call is_set,$(1),First argument: Source file missing) $(call is_set,$(2),Second argument: Output object file missing) - $(Q)$(CC) -std=c99 $(CFLAGS) -c $(1) -o $(2) + $(Q)$(CC) -std=gnu99 $(CFLAGS) -c $(1) -o $(2) @echo 'CC $(2)' endef -- cgit v1.2.3