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.
#
+#
PROG = hald-addon-network-discovery
OBJS = addon-network-discovery.o probe-snmp.o snmp.o logger.o cache.o common.o printer.o
MANIFEST = network-discovery.xml
@@ -41,10 +43,16 @@
LDLIBS += -lc -ldbus-1 -lhal -lglib-2.0 -ldbus-glib-1
LDLIBS += -lnsl -lsocket
LDLIBS += $(ZIGNORE) -lnetsnmp
+# Allow HAL to take some of it dependencies from outside the proto area.
+$(ADJUNCT_PROTO_NOT_SET)LDFLAGS += $(ZASSERTDEFLIB)=libdbus-1.so
+$(ADJUNCT_PROTO_NOT_SET)LDFLAGS += $(ZASSERTDEFLIB)=libglib-2.0.so
+$(ADJUNCT_PROTO_NOT_SET)LDFLAGS += $(ZASSERTDEFLIB)=libdbus-glib-1.so
+$(ADJUNCT_PROTO_NOT_SET)LDFLAGS += $(ZASSERTDEFLIB)=libnetsnmp.so
+
CPPFLAGS += $(HAL_DBUS_CPPFLAGS) $(HAL_GLIB_CPPFLAGS) $(HAL_CONFIG_CPPFLAGS)
CPPFLAGS += -I$(ROOT)/usr/include/hal -I../../hald -I../../utils
C99MODE = $(C99_ENABLE)
.KEEP_STATE: