Print this page
1681 support for BUILD64=# no longer works
@@ -18,10 +18,11 @@
#
# CDDL HEADER END
#
#
# Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright 2014 Andrew Stormont.
#
# rebind basic build macros to 64-bit versions
CFLAGS= $(CFLAGS64)
@@ -35,10 +36,19 @@
COMPILE.b= $(COMPILE64.b)
LINK.c= $(LINK64.c)
LINK.cc= $(LINK64.cc)
LINT.c= $(LINT64.c)
+$(NOT_BUILD64)COMPILE.c= /usr/bin/false
+$(NOT_BUILD64)COMPILE.cc= /usr/bin/false
+$(NOT_BUILD64)COMPILE.s= /usr/bin/false
+$(NOT_BUILD64)COMPILE.d= /usr/bin/false
+$(NOT_BUILD64)COMPILE.b= /usr/bin/false
+$(NOT_BUILD64)LINK.c= /usr/bin/false
+$(NOT_BUILD64)LINK.cc= /usr/bin/false
+$(NOT_BUILD64)LINT.c= /usr/bin/false
+
CTF_FLAGS= $(CTF_FLAGS_64)
OFFSETS_CREATE= $(OFFSETS_CREATE64)
#
@@ -70,10 +80,17 @@
CPP= $($(MACH64)_CPP)
AS= $($(MACH64)_AS)
LD= $($(MACH64)_LD)
LINT= $($(MACH64)_LINT)
+$(NOT_BUILD64)CC= /usr/bin/false
+$(NOT_BUILD64)CCC= /usr/bin/false
+$(NOT_BUILD64)CPP= /usr/bin/false
+$(NOT_BUILD64)AS= /usr/bin/false
+$(NOT_BUILD64)LD= /usr/bin/false
+$(NOT_BUILD64)LINT= /usr/bin/false
+
REAL_CC= $(CW_CC_CMD:sh)
REAL_CCC= $(CW_CCC_CMD:sh)
BUILD.SO= $(CC) $(CFLAGS) -o $@ $(GSHARED) $(DYNFLAGS) \
$(PICS) $(EXTPICS) -L $(ROOTLIBDIR64) $(LDLIBS)