summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2020-03-26 21:57:00 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2020-03-26 21:57:09 +0000
commit3246c9f04267b117b4f464d9eef39b7ef7a70a7f (patch)
tree25134251a44e731fa9b1bb857a49dbfab5b4ad00
parent1bec35860a7140712eed1c26e57285803e61b557 (diff)
downloadbuildsystem-3246c9f04267b117b4f464d9eef39b7ef7a70a7f.tar.gz
buildsystem-3246c9f04267b117b4f464d9eef39b7ef7a70a7f.tar.bz2
Makefiles: Add -DSTMTEXPR=1 for gcc compatible toolchains
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
-rw-r--r--makefiles/Makefile.clang2
-rw-r--r--makefiles/Makefile.gcc2
-rw-r--r--makefiles/Makefile.open642
3 files changed, 3 insertions, 3 deletions
diff --git a/makefiles/Makefile.clang b/makefiles/Makefile.clang
index 2a11a5b..50f8a82 100644
--- a/makefiles/Makefile.clang
+++ b/makefiles/Makefile.clang
@@ -26,7 +26,7 @@ LDSHR = -shared -Wl,-soname,$(SONAME)
ARFLG := cru
# Definitions of various attributes
-CFLAGS := $(CFLAGS) -D_ALIGNED="__attribute__((aligned))"
+CFLAGS := $(CFLAGS) -D_ALIGNED="__attribute__((aligned))" -DSTMTEXPR=1
# Extensions for sanitize target
ifeq ($(MAKECMDGOALS),sanitize)
diff --git a/makefiles/Makefile.gcc b/makefiles/Makefile.gcc
index 7d70bc1..b5119ac 100644
--- a/makefiles/Makefile.gcc
+++ b/makefiles/Makefile.gcc
@@ -25,7 +25,7 @@ LDSHR = -shared -Wl,-soname,$(SONAME)
ARFLG := cru
# Definitions for various attributes
-CFLAGS := $(CFLAGS) -D_ALIGNED="__attribute__((aligned))"
+CFLAGS := $(CFLAGS) -D_ALIGNED="__attribute__((aligned))" -DSTMTEXPR=1
# Extensions for coverage target
ifeq ($(MAKECMDGOALS),coverage)
diff --git a/makefiles/Makefile.open64 b/makefiles/Makefile.open64
index b58569c..142474a 100644
--- a/makefiles/Makefile.open64
+++ b/makefiles/Makefile.open64
@@ -27,7 +27,7 @@ LDFLAGS := $(LDFLAGS) -ipa
ARFLG := cru
# Definitions for various attributes
-CFLAGS := $(CFLAGS) -D_ALIGNED="__attribute__((aligned))"
+CFLAGS := $(CFLAGS) -D_ALIGNED="__attribute__((aligned))" -DSTMTEXPR=1
# Extensions for coverage target
ifeq ($(MAKECMDGOALS),coverage)