summaryrefslogtreecommitdiff
path: root/usr/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib')
-rw-r--r--usr/src/lib/policykit/libpolkit/Makefile.com19
1 files changed, 11 insertions, 8 deletions
diff --git a/usr/src/lib/policykit/libpolkit/Makefile.com b/usr/src/lib/policykit/libpolkit/Makefile.com
index 0fb2f8a7f6..abb0c6891f 100644
--- a/usr/src/lib/policykit/libpolkit/Makefile.com
+++ b/usr/src/lib/policykit/libpolkit/Makefile.com
@@ -22,10 +22,7 @@
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
-# ident "%Z%%M% %I% %E% SMI"
-#
-# usr/src/lib/policykit/libpolkit/Makefile.com
-#
+# Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
LIBRARY = libpolkit.a
VERS = .0.0.0
@@ -35,10 +32,9 @@ LIBPCSRC = polkit.pc
include ../../Makefile.com
-LIBS = $(DYNLIB) $(LINTLIB)
+LIBS = $(DYNLIB)
LDLIBS += $(POLICYKIT_GLIB_LDLIBS)
LDLIBS += -lc -lsecdb
-$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
SRCDIR = ../common
@@ -47,12 +43,19 @@ CPPFLAGS += -DPACKAGE_LOCALE_DIR=\"/usr/lib/locale\"
ROOTMAJLINK = $(ROOTLIBDIR)/$(LIBRARY:.a=.so)$(VERS_MAJ)
+# glib2 >= 2.62 suppresses warnings about deprecated declarations in header
+# files using pragma "GCC diagnostic ignored \"-Wdeprecated-declarations\""
+# This is not supported before GCC 4.6 so just globally suppress these
+# warnings under the shadow compiler
+CERRWARN += -_gcc4=-Wno-deprecated-declarations
+
+# smatch has problems parsing the glib header files
+SMATCH=off
+
.KEEP_STATE:
all: $(LIBS)
-lint:
-
$(ROOTMAJLINK):
-$(RM) $@; $(SYMLINK) $(DYNLIB) $@