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

@@ -20,11 +20,13 @@
 #
 #
 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright 2017 RackTop Systems.
 #
+#
 # usr/src/lib/hal/libhal/Makefile.com
 #
 
 LIBRARY =       libhal.a
 VERS =          .1.0.0

@@ -36,10 +38,13 @@
 
 LIBS =          $(DYNLIB) $(LINTLIB)
 LDLIBS +=       -lc -ldbus-1
 $(LINTLIB) :=   SRCS = $(SRCDIR)/$(LINTSRC)
 
+# Allow libdbus to be taken from outside the proto area.
+$(ADJUNCT_PROTO_NOT_SET)DYNFLAGS += $(ZASSERTDEFLIB)=libdbus-1.so
+
 SRCDIR =        ../common
 
 CFLAGS +=       $(CCVERBOSE)
 CPPFLAGS +=     $(HAL_CONFIG_CPPFLAGS)
 CPPFLAGS +=     -DGETTEXT_PACKAGE=\"$(HAL_GETTEXT_PACKAGE)\" -DENABLE_NLS