diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2023-11-15 09:56:37 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2023-11-15 10:00:08 +0100 |
commit | acacb633e92c2c7facc11a9c18e6dda16c044e95 (patch) | |
tree | 2915c20509e8442717e0a934d0b950e93ca84c0e /Makefile.native.inc | |
parent | 9ae0188f77e9a00af73648f0f6f4504bd464c32d (diff) |
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 <matzeton@googlemail.com>
Diffstat (limited to 'Makefile.native.inc')
-rw-r--r-- | Makefile.native.inc | 3 |
1 files changed, 1 insertions, 2 deletions
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 |