Print this page
8411 Build should warn when linking against libraries outside proto area
*** 20,29 ****
--- 20,31 ----
#
#
# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
+ # Copyright 2017 RackTop Systems.
+ #
SUBDIR = sunos
HAL_PROG = hal-device hal-find-by-capability hal-find-by-property \
hal-get-property hal-set-property lshal
*** 67,76 ****
--- 69,83 ----
$(STORAGE_PROG) := LDLIBS += -lc -ldbus-1 -lglib-2.0 -lhal -lhal-storage -lbsm
$(STORAGE_METHOD_PROG) := LDLIBS += -lpolkit
+ # Allow HAL to take some of its dependencies from outside the proto area.
+ $(ADJUNCT_PROTO_NOT_SET)LDFLAGS += $(ZASSERTDEFLIB)=libdbus-1.so
+ $(ADJUNCT_PROTO_NOT_SET)LDFLAGS += $(ZASSERTDEFLIB)=libdbus-glib-1.so
+ $(ADJUNCT_PROTO_NOT_SET)LDFLAGS += $(ZASSERTDEFLIB)=libglib-2.0.so
+
CPPFLAGS += $(HAL_DBUS_CPPFLAGS) $(HAL_GLIB_CPPFLAGS) $(HAL_CONFIG_CPPFLAGS)
CPPFLAGS += -I$(ROOT)/usr/include/hal
CPPFLAGS += -I$(ROOT)/usr/include/libpolkit
C99MODE = $(C99_ENABLE)