Print this page
8411 Build should warn when linking against libraries outside proto area
@@ -20,11 +20,11 @@
#
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
-# ident "%Z%%M% %I% %E% SMI"
+# Copyright 2017 RackTop Systems.
#
PROG = hald-probe-volume
OBJS = probe-volume.o cdutils.o fsutils.o logger.o
SRCS = probe-volume.c
@@ -34,10 +34,13 @@
ROOTCMDDIR = $(ROOTLIB_HAL)
LDLIBS += -lc -ldbus-1 -lhal -lfstyp -lnvpair -ladm -lefi
+# Allow libdbus to be taken from outside the proto area.
+$(ADJUNCT_PROTO_NOT_SET)LDFLAGS += $(ZASSERTDEFLIB)=libdbus-1.so
+
CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
CPPFLAGS += $(HAL_DBUS_CPPFLAGS) $(HAL_CONFIG_CPPFLAGS)
CPPFLAGS += -I$(ROOT)/usr/include/hal -I../../utils -I../../hald
C99MODE = $(C99_ENABLE)