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

*** 20,30 **** # # # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # ! # ident "%Z%%M% %I% %E% SMI" # PROG = hald-addon-acpi OBJS = addon-acpi.o logger.o util_helper.o acpi.o util_pm.o SRCS = addon-acpi.c ../../hald/logger.c ../../hald/util_helper.c --- 20,30 ---- # # # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # ! # Copyright 2017 RackTop Systems. # PROG = hald-addon-acpi OBJS = addon-acpi.o logger.o util_helper.o acpi.o util_pm.o SRCS = addon-acpi.c ../../hald/logger.c ../../hald/util_helper.c
*** 34,43 **** --- 34,47 ---- ROOTCMDDIR = $(ROOTLIB_HAL) LDLIBS += -lc -ldbus-1 -lhal -lglib-2.0 + # Allow libdbus and libglib to be taken from outside the proto area. + $(ADJUNCT_PROTO_NOT_SET)LDFLAGS += $(ZASSERTDEFLIB)=libdbus-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 -I../../hald C99MODE = $(C99_ENABLE) .KEEP_STATE: