Print this page
8411 Build should warn when linking against libraries outside proto area
@@ -19,10 +19,11 @@
# CDDL HEADER END
#
#
# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright 2017 RackTop Systems.
#
.KEEP_STATE:
.SUFFIXES:
@@ -48,10 +49,14 @@
LDLIBS += -L$(ROOT)/usr/lib/fm -lnvpair -lfmevent -lfmd_msg -lfmnotify \
-lumem -lnetsnmp -lnetsnmpagent
LDFLAGS += -R/usr/lib/fm
LINTFLAGS += -mnu
+# Allow Net-SNMP libs to be taken from outside the proto area.
+$(ADJUNCT_PROTO_NOT_SET)LDFLAGS += $(ZASSERTDEFLIB)=libnetsnmp.so
+$(ADJUNCT_PROTO_NOT_SET)LDFLAGS += $(ZASSERTDEFLIB)=libnetsnmpagent.so
+
CERRWARN += -_gcc=-Wno-parentheses
.NO_PARALLEL:
.PARALLEL: $(OBJS) $(LINTFILES)