Print this page
7595 sgs native-proto fails on pre-7029 illumos-gate
Reviewed by: Richard Lowe <richlowe@richlowe.net>

@@ -19,10 +19,11 @@
 # CDDL HEADER END
 #
 
 #
 # Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright 2016 RackTop Systems.
 #
 
 PROG =          ld
 
 include         $(SRC)/cmd/Makefile.cmd

@@ -50,10 +51,11 @@
 CLEANFILES +=   $(LINTOUTS)
 
 native :=       LDFLAGS = -R$(SGSPROTO) $(ZNOVERSION)
 native :=       LDLIBS = -L$(SGSPROTO) $(LD_LIB) -lelf $(CONVLIBDIR) \
                     $(CONV_LIB)
+native :=       CPPFLAGS += -DNATIVE_BUILD
 
 BLTDEFS=        msg.h
 BLTDATA=        msg.c
 BLTMESG=        $(SGSMSGDIR)/ld