Mac OS X deployment target: piping opts through Makefiles
[ghc-hetmet.git] / utils / prof / cgprof / Makefile
index bac0ab7..acd71e9 100644 (file)
@@ -1,6 +1,12 @@
 TOP=../../..
 include $(TOP)/mk/boilerplate.mk
 
+# Exclude for booting
+ifeq "$(stage)" "2"
+SRC_CC_OPTS += $(MACOSX_DEPLOYMENT_CC_OPTS)
+SRC_LD_OPTS += $(MACOSX_DEPLOYMENT_LD_OPTS)
+endif
+
 C_PROG = cgprof
 INSTALL_LIBEXECS=$(C_PROG)