From e6615f1000c4c6e6b8e18bdc6b077002bdd22526 Mon Sep 17 00:00:00 2001 From: Andy Fiddaman Date: Sat, 14 Sep 2019 09:57:13 +0000 Subject: 11684 shadow compilers dislike glib2 2.62 Reviewed by: Toomas Soome Reviewed by: Dominik Hassler Approved by: Dan McDonald --- usr/src/lib/policykit/libpolkit/Makefile.com | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'usr/src/lib') 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) $@ -- cgit v1.2.3