[rtems-libbsd commit] Makefile: Add -fno-strict-aliasing

Sebastian Huber sebh at rtems.org
Thu Sep 18 10:55:11 UTC 2014


Module:    rtems-libbsd
Branch:    master
Commit:    6766ee91c5559669f2e8144cceff0de9f46a84a9
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=6766ee91c5559669f2e8144cceff0de9f46a84a9

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Sep 18 12:59:24 2014 +0200

Makefile: Add -fno-strict-aliasing

---

 Makefile            |    1 +
 freebsd-to-rtems.py |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index 9e38898..75c06fb 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@ include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
 include $(RTEMS_CUSTOM)
 include $(PROJECT_ROOT)/make/leaf.cfg
 
+COMMON_FLAGS += -fno-strict-aliasing
 COMMON_FLAGS += -ffreestanding
 COMMON_FLAGS += -fno-common
 COMMON_FLAGS += -Irtemsbsd/include
diff --git a/freebsd-to-rtems.py b/freebsd-to-rtems.py
index 94a0caa..a2b06ae 100755
--- a/freebsd-to-rtems.py
+++ b/freebsd-to-rtems.py
@@ -411,6 +411,7 @@ class ModuleManager:
 			'include $(RTEMS_CUSTOM)\n' \
 			'include $(PROJECT_ROOT)/make/leaf.cfg\n' \
 			'\n' \
+			'COMMON_FLAGS += -fno-strict-aliasing\n' \
 			'COMMON_FLAGS += -ffreestanding\n' \
 			'COMMON_FLAGS += -fno-common\n' \
 			'COMMON_FLAGS += -Irtemsbsd/include\n' \



More information about the vc mailing list