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. + # SUBDIRS = solaris PROG = hald OBJS = hald_marshal.o device.o device_info.o device_store.o hald.o \
*** 43,52 **** --- 45,61 ---- LDLIBS += -lc -lm -ldbus-1 -ldbus-glib-1 -lglib-2.0 -lgobject-2.0 \ -ldevinfo -lsysevent -lnvpair -lkstat -lcfgadm all install $(PROG) := LDLIBS += -lexpat + # 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 + $(ADJUNCT_PROTO_NOT_SET)LDFLAGS += $(ZASSERTDEFLIB)=libgobject-2.0.so + $(ADJUNCT_PROTO_NOT_SET)LDFLAGS += $(ZASSERTDEFLIB)=libexpat.so + CPPFLAGS += $(HAL_DBUS_CPPFLAGS) $(HAL_GLIB_CPPFLAGS) $(HAL_CONFIG_CPPFLAGS) C99MODE = $(C99_ENABLE) CLOBBERFILES += hald_marshal.c hald_marshal.h