]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/conf/Makefile.x86_64
xnu-3789.1.32.tar.gz
[apple/xnu.git] / bsd / conf / Makefile.x86_64
index 83b41e2ddf618efe7596ba505afb59b4d07aef41..c397a6e9ba2ac7705b7ba7f0740616cc81e4c595 100644 (file)
@@ -1,49 +1,16 @@
 ######################################################################
 #BEGIN  Machine dependent Makefile fragment for x86_64
 ######################################################################
-# files to build with certain warnings turned off
+
+# Files to build with certain warnings turned off
 dis_tables.o_CFLAGS_ADD += -Wno-cast-qual
 fbt_x86.o_CFLAGS_ADD += -Wno-cast-qual
 
-
-# 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 =               \
-       fifo_vnops.o    \
-       aescrypt.o              \
-       aeskey.o                \
-       des_setkey.o            \
-       sha2.o                  \
-       if_ethersubr.o          \
-       if_media.o              \
-       kext_net.o              \
-       dhcp_options.o          \
-       in_bootp.o              \
-       krpc_subr.o             \
-       ux_exception.o          \
-       unix_startup.o          \
-       randomdev.o             \
-       vnode_pager.o   \
-       dp_backing_file.o \
-       vm_unix.o               \
-       mem.o                   \
-       km.o                    \
-       init_sysent.o           \
-       drv_dep.o               \
-       sdt_x86.o       \
-       dtrace_isa.o            \
-       aes_modes.o
-
-
-OBJS_WERROR=$(filter-out $(OBJS_NO_WERROR),$(OBJS))
-
-$(OBJS_WERROR):                WERROR=-Werror
+# Inline assembly doesn't interact well with LTO
+fbt_x86.o_CFLAGS_ADD += $(CFLAGS_NOLTO_FLAG)
+# Taking the address of labels doesn't work with LTO (9524055)
+dtrace.o_CFLAGS_ADD += $(CFLAGS_NOLTO_FLAG)
 
 ######################################################################
 #END    Machine dependent Makefile fragment for x86_64
 ######################################################################
-