Print this page
8411 Build should warn when linking against libraries outside proto area

@@ -19,10 +19,11 @@
 # CDDL HEADER END
 #
 # Copyright 2015 Gary Mills
 # Copyright 2015 Igor Kozhukhov <ikozhukhov@gmail.com>
 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright 2017 RackTop Systems.
 #
 #
 # Definitions common to libraries.
 #
 # include global definitions; SRC should be defined in the shell.

@@ -135,11 +136,11 @@
 # combining relocations into one relocation table reduces startup costs.
 # All options are tunable to allow overload/omission from lower makefiles.
 
 
 HSONAME=        -h$(SONAME)
-DYNFLAGS=       $(HSONAME) $(ZTEXT) $(ZDEFS) $(BDIRECT) \
+DYNFLAGS=       $(HSONAME) $(ZTEXT) $(ZDEFS) $(ZASSERTDEFLIB) $(BDIRECT) \
                 $(MAPFILES:%=-M%) $(MAPFILE.PGA:%=-M%) $(MAPFILE.NED:%=-M%)
 
 LDLIBS=         $(LDLIBS.lib)
 
 OBJS=           $(OBJECTS:%=objs/%)

@@ -211,11 +212,11 @@
 SONAMECCC=      $(DYNLIBCCC)
 HSONAMECCC=     -h $(SONAMECCC)
 #
 # Keep in sync with the standard DYNFLAGS
 #
-$(DYNLIBCCC):=  DYNFLAGS = $(HSONAMECCC) $(ZTEXT) $(ZDEFS) \
+$(DYNLIBCCC):=  DYNFLAGS = $(HSONAMECCC) $(ZTEXT) $(ZDEFS) $(ZASSERTDEFLIB) \
                 $(MAPFILES:%=-M%) $(MAPFILE.PGA:%=-M%) $(MAPFILE.NED:%=-M%) \
                 $(BDIRECT) $(NORUNPATH)
 
 
 # build rule for "portable" source