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

@@ -20,10 +20,12 @@
 #
 #
 # Copyright (c) 2008-2009, Intel Corporation.
 # All Rights Reserved.
 #
+# Copyright 2017 RackTop Systems.
+#
 
 PROG = latencytop
 OBJS = latencytop.o display.o dwrapper.o klog.o stat.o table.o util.o
 SRCS = $(OBJS:%.o=../common/%.c)
 

@@ -38,10 +40,13 @@
         -I$(ADJUNCT_PROTO)/usr/lib/glib-2.0/include
 C99MODE = $(C99_ENABLE)
 LDLIBS += -lcurses -ldtrace
 all install     := LDLIBS += -lglib-2.0
 
+# Allow libglib to be taken from outside the proto area.
+$(ADJUNCT_PROTO_NOT_SET)LDFLAGS += $(ZASSERTDEFLIB)=libglib-2.0.so
+
 LINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2
 LINTFLAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
 LINTFLAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2
 LINTFLAGS64 += -erroff=E_NAME_USED_NOT_DEF2
 LINTFLAGS64 += -erroff=E_FUNC_RET_ALWAYS_IGNOR2