######################################################################
#BEGIN Machine dependent Makefile fragment for x86_64
######################################################################
-
-# Enable -Werror for x86_64 builds
-CFLAGS+= $(WERROR)
-CWARNFLAGS= $(filter-out -Wbad-function-cast, $(CWARNFLAGS_STD))
-
-# Objects that don't compile cleanly:
-#OBJS_NO_WERROR= \
-
-OBJS_WERROR=$(filter-out $(OBJS_NO_WERROR),$(OBJS))
-
-$(OBJS_WERROR): WERROR=-Werror
# Files that must go in the __HIB segment:
UNCONFIGURED_HIB_FILES= \
- IOHibernateRestoreKernel.o \
- WKdmDecompress.o
+ IOHibernateRestoreKernel.o
HIB_FILES=$(filter $(UNCONFIGURED_HIB_FILES),$(OBJS))
+# Unconfigured __HIB files must be Mach-O for "setsegname"
+IOHibernateRestoreKernel.o_CFLAGS_ADD += -fno-stack-protector $(CFLAGS_NOLTO_FLAG)
+
######################################################################
#END Machine dependent Makefile fragment for x86_64
######################################################################