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 = misc.a
VERS =
OBJECTS = misc.o
@@ -44,10 +45,14 @@
LDLIBS += -lc -lsec -lidmap -lpython$(PYTHON_VERSION)
CFLAGS += $(CCVERBOSE)
CERRWARN += -_gcc=-Wno-unused-variable
CPPFLAGS += -I$(ADJUNCT_PROTO)/usr/include/python$(PYTHON_VERSION)
+# Allow libpython to be taken from outside the proto area.
+$(ADJUNCT_PROTO_NOT_SET)DYNFLAGS += \
+ $(ZASSERTDEFLIB)=libpython$(PYTHON_VERSION).so
+
.KEEP_STATE:
all: $(PYOBJS) $(LIBS)
install: all $(ROOTPYSOLFILES)