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

@@ -18,10 +18,11 @@
 #
 # CDDL HEADER END
 #
 #
 # Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright 2017 RackTop Systems.
 #
 
 LIBRARY =       ioctl.a
 VERS =
 OBJECTS =       ioctl.o

@@ -49,10 +50,14 @@
 CERRWARN +=     -_gcc=-Wno-unused-variable
 CPPFLAGS +=     -I$(ADJUNCT_PROTO)/usr/include/python$(PYTHON_VERSION)
 CPPFLAGS +=     -I../../../uts/common/fs/zfs
 CPPFLAGS +=     -I../../../common/zfs
 
+# Allow libpython to be taken from outside of the proto area.
+$(ADJUNCT_PROTO_NOT_SET)DYNFLAGS += \
+        $(ZASSERTDEFLIB)=libpython$(PYTHON_VERSION).so
+
 .KEEP_STATE:
 
 all: $(PYOBJS) $(LIBS)
 
 install: all $(ROOTPYZFSFILES)