Print this page
8411 Build should warn when linking against libraries outside proto area
@@ -20,10 +20,11 @@
#
#
# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
# Copyright 2012 OmniTI Computer Consulting, Inc. All rights reserved.
+# Copyright 2017 RackTop Systems.
#
LIBRARY = libbe_py.a
VERS =
OBJECTS = libbe_py.o
@@ -44,10 +45,14 @@
LDLIBS += -lbe -lnvpair -lc
CFLAGS += $(CCVERBOSE)
CPPFLAGS += -I$(ADJUNCT_PROTO)/usr/include/python$(PYTHON_VERSION) \
-D_FILE_OFFSET_BITS=64 -I../../libbe/common
+# Allow libpython to be taken from outside the proto area.
+$(ADJUNCT_PROTO_NOT_SET)$(DYNLIB) := DYNFLAGS += \
+ $(ZASSERTDEFLIB)=libpython$(PYTHON_VERSION).so
+
.KEEP_STATE:
all install := LDLIBS += -lpython$(PYTHON_VERSION)
all: $(PYOBJS) $(LIBS)