MANPAGES = dynamic_pager.8
LAUNCHD_PLISTS = com.apple.dynamic_pager.plist
-Extra_CC_Flags = -no-cpp-precomp -DNO_DIRECT_RPC
+Extra_CC_Flags = -mdynamic-no-pic -Wall -Werror
+Extra_LD_Flags = -dead_strip
-Extra_LD_Flags = -framework CoreFoundation -framework IOKit
-Extra_MIG_Flags = -no-cpp-precomp -R -untyped -DNO_DIRECT_RPC
+Extra_CC_Flags += -DNO_DIRECT_RPC
+
+Extra_Frameworks += -framework CoreFoundation -framework IOKit
+Extra_MIG_Flags = -R -untyped -DNO_DIRECT_RPC
include $(MAKEFILEPATH)/CoreOS/ReleaseControl/BSDCommon.make
Embedded=$(shell tconf --test TARGET_OS_EMBEDDED)
-
+
after_install:
ifeq "$(Embedded)" "YES"
/usr/libexec/PlistBuddy -x \
-c "Add :Disabled bool true" \
"$(DSTROOT)/System/Library/LaunchDaemons/com.apple.dynamic_pager.plist"
endif
+ plutil -convert binary1 "$(DSTROOT)/System/Library/LaunchDaemons/com.apple.dynamic_pager.plist"