summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk')
-rw-r--r--mk/package.mk4
-rw-r--r--mk/vars.mk1
2 files changed, 5 insertions, 0 deletions
diff --git a/mk/package.mk b/mk/package.mk
index cab7b6947..bacee71f4 100644
--- a/mk/package.mk
+++ b/mk/package.mk
@@ -3,6 +3,10 @@
all: build-all-pkgs
+ifeq ($(ADK_HOST_CYGWIN),y)
+EXEEXT:= .exe
+endif
+
TCFLAGS:= ${TARGET_CFLAGS}
TCXXFLAGS:= ${TARGET_CFLAGS}
TCPPFLAGS:= ${TARGET_CPPFLAGS}
diff --git a/mk/vars.mk b/mk/vars.mk
index 8bbb7765b..ab247901f 100644
--- a/mk/vars.mk
+++ b/mk/vars.mk
@@ -21,6 +21,7 @@ endif
TARGET_CFLAGS:= $(TARGET_CFLAGS_ARCH) $(TARGET_DEBUGGING) -fwrapv
ifneq ($(ADK_TOOLCHAIN_GCC_USE_SSP),)
TARGET_CFLAGS+= -fstack-protector
+TARGET_CXXFLAGS+= -fstack-protector
TARGET_LDFLAGS+= -fstack-protector
endif
ifneq ($(ADK_TOOLCHAIN_GCC_USE_LTO),)