summaryrefslogtreecommitdiff
path: root/makefiles
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-04-01 20:54:27 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2011-04-01 20:54:27 +0000
commit7574b41345968b5f7e9ca5875faccb1478ce0555 (patch)
tree35d10a933b58923cc67c7afe6611c0f4d4ec8aec /makefiles
parentfe492d563c0bbae4c833256996b140da24038451 (diff)
downloadbuildsystem-7574b41345968b5f7e9ca5875faccb1478ce0555.tar.gz
buildsystem-7574b41345968b5f7e9ca5875faccb1478ce0555.tar.bz2
Provide _ALIGNED preprocessor definition
svn path=/trunk/tools/buildsystem/; revision=12148
Diffstat (limited to 'makefiles')
-rw-r--r--makefiles/Makefile.clang3
-rw-r--r--makefiles/Makefile.gcc3
-rw-r--r--makefiles/Makefile.norcroft3
3 files changed, 9 insertions, 0 deletions
diff --git a/makefiles/Makefile.clang b/makefiles/Makefile.clang
index 8a1127e..6e8660c 100644
--- a/makefiles/Makefile.clang
+++ b/makefiles/Makefile.clang
@@ -25,6 +25,9 @@ LDSHR = -shared -Wl,-soname,$(SONAME)
ARFLG := cru
+# Definitions of various attributes
+CFLAGS := $(CFLAGS) -D_ALIGNED=""
+
###############################################################################
# Mac OS X Universal Binaries
###############################################################################
diff --git a/makefiles/Makefile.gcc b/makefiles/Makefile.gcc
index 31b528e..abe4f28 100644
--- a/makefiles/Makefile.gcc
+++ b/makefiles/Makefile.gcc
@@ -24,6 +24,9 @@ LDSHR = -shared -Wl,-soname,$(SONAME)
ARFLG := cru
+# Definitions for various attributes
+CFLAGS := $(CFLAGS) -D_ALIGNED="__attribute__((aligned))"
+
# Extensions for coverage target
ifeq ($(MAKECMDGOALS),coverage)
COVCFLAGS ?= -fprofile-arcs -ftest-coverage
diff --git a/makefiles/Makefile.norcroft b/makefiles/Makefile.norcroft
index 8becc8b..93344f9 100644
--- a/makefiles/Makefile.norcroft
+++ b/makefiles/Makefile.norcroft
@@ -23,6 +23,9 @@ LDSHR :=
ARFLG := -c
+# Definitions of various attributes
+CFLAGS := $(CFLAGS) -D_ALIGNED=""
+
# Extensions for coverage target
ifeq ($(MAKECMDGOALS),coverage)
$(error Coverage is not supported with Norcroft)