From 0aad0f22823b98aa97aa9ae4bccb63a2a2ef3d5a Mon Sep 17 00:00:00 2001 From: John Birrell Date: Tue, 20 Nov 2007 02:07:30 +0000 Subject: These are the things that the tinderbox has problems with because it doesn't use the default CFLAGS which contain -fno-strict-aliasing. Until the code is cleaned up, just add -fno-strict-aliasing to the CFLAGS of these for the tinderboxes' sake, allowing the rest of the tree to have -Werror enabled again. --- lib/libkse/Makefile | 1 + lib/libthr/Makefile | 1 + 2 files changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/libkse/Makefile b/lib/libkse/Makefile index d7c5acb1b5dfc..8018ce52c42e5 100644 --- a/lib/libkse/Makefile +++ b/lib/libkse/Makefile @@ -25,6 +25,7 @@ CFLAGS+=-I${.CURDIR}/sys CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf/${MACHINE_ARCH} CFLAGS+=-fno-builtin +CFLAGS+=-fno-strict-aliasing # Uncomment this if you want libkse to contain debug information for # thread locking. diff --git a/lib/libthr/Makefile b/lib/libthr/Makefile index a0f4069920b5e..c3d687bab956b 100644 --- a/lib/libthr/Makefile +++ b/lib/libthr/Makefile @@ -27,6 +27,7 @@ CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf/${MACHINE_ARCH} CFLAGS+=-I${.CURDIR}/../libthread_db CFLAGS+=-Winline +CFLAGS+=-fno-strict-aliasing # CFLAGS+=-DSYSTEM_SCOPE_ONLY -- cgit v1.3