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_SRCS=lndir.c
C_PROG=lndir
include $(TOP)/mk/target.mk
-# Win32: cygwin supports symlinks, so make sure we
-# don't feed in the mingw flags here. In other
-# words, lndir.exe is a cygwin-based app.
-CC_OPTS := $(filter-out -mno-cygwin,$(CC_OPTS))