]> git.saurik.com Git - apple/system_cmds.git/blobdiff - arch.tproj/Makefile
system_cmds-496.tar.gz
[apple/system_cmds.git] / arch.tproj / Makefile
index 7f48b6664443cf262366b6e9212f8159d42f52a6..7b0f0ea4c13fb07c8a06bd5aa8b45803c8c69c79 100644 (file)
@@ -6,13 +6,16 @@ Extra_Frameworks = -framework Foundation
 
 MANPAGES = arch.1 machine.1
 
-Extra_CC_Flags = -DARCH_PROG=\"arch\" -DMACHINE_PROG=\"machine\"
+Extra_CC_Flags = -Wall -Werror -mdynamic-no-pic
+Extra_LD_Flags = -dead_strip
+
+Extra_CC_Flags += -DARCH_PROG=\"arch\" -DMACHINE_PROG=\"machine\"
 
 include $(MAKEFILEPATH)/CoreOS/ReleaseControl/BSDCommon.make
 
 HELPERDIR = /AppleInternal/Developer/Tools
 after_install:
        @-$(RM) -f $(DSTROOT)$(INSTALLDIR)/machine
-       $(LN) -h $(DSTROOT)$(Install_Dir)/arch $(DSTROOT)$(Install_Dir)/machine
+       $(LN) -fh $(DSTROOT)$(Install_Dir)/arch $(DSTROOT)$(Install_Dir)/machine
        $(INSTALL_DIRECTORY) -d $(DSTROOT)$(HELPERDIR)
        $(INSTALL_SCRIPT) arch_helper.pl $(DSTROOT)$(HELPERDIR)