Print this page
4078 groupadd execs getent unnecessarily
Reviewed by: Rich Lowe <richlowe@richlowe.net>
Reviewed by: Gary Mills <gary_mills@fastmail.fm>
Reviewed by: Milan Jurik <milan.jurik@xylab.cz>
Reviewed by: Gordon Ross <Gordon.W.Ross@gmail.com>

@@ -19,10 +19,12 @@
 # CDDL HEADER END
 #
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright (c) 2013 RackTop Systems.
+#
 # cmd/oamuser/group/Makefile
 #
 
 include ../../Makefile.cmd
 

@@ -32,11 +34,11 @@
 
 SBINPROG=       $(GROUPADD)   $(GROUPDEL)   $(GROUPMOD)
 
 PROG=           $(SBINPROG)
 
-ADD_OBJ=        groupadd.o    add_group.o   gid.o       messages.o
+ADD_OBJ=        groupadd.o    add_group.o   messages.o
 DEL_OBJ=        groupdel.o    del_group.o   messages.o
 MOD_OBJ=        groupmod.o    mod_group.o   messages.o
 
 OBJECTS=        $(ADD_OBJ)    $(DEL_OBJ)    $(MOD_OBJ)
 SRCS=           $(OBJECTS:.o=.c)

@@ -48,15 +50,14 @@
 LINTFLAGS=      -u
 
 INSSBINPROG=    $(SBINPROG:%=$(ROOTUSRSBIN)/%)
 
 CPPFLAGS=       -I$(HERE) -I$(LOCAL) $(CPPFLAGS.master)
-CERRWARN +=     -_gcc=-Wno-type-limits
 FILEMODE=       0555
 
 $(GROUPADD) :=  OBJS = $(ADD_OBJ)
-$(GROUPADD) :=  LDLIBS += $(LIBUSRGRP)
+$(GROUPADD) :=  LDLIBS += $(LIBUSRGRP) -lcmdutils
 
 $(GROUPDEL) :=  OBJS = $(DEL_OBJ)
 $(GROUPDEL) :=  LDLIBS += $(LIBUSRGRP)
 
 $(GROUPMOD) :=  OBJS = $(MOD_OBJ)