Print this page
12312 fix unused lib dependencies

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/oawk/Makefile
          +++ new/usr/src/cmd/oawk/Makefile
↓ open down ↓ 15 lines elided ↑ open up ↑
  16   16  # If applicable, add the following below this CDDL HEADER, with the
  17   17  # fields enclosed by brackets "[]" replaced with your own identifying
  18   18  # information: Portions Copyright [yyyy] [name of copyright owner]
  19   19  #
  20   20  # CDDL HEADER END
  21   21  #
  22   22  #
  23   23  # Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  24   24  # Use is subject to license terms.
  25   25  #
  26      -# Copyright (c) 2018, Joyent, Inc.
       26 +# Copyright 2020 Joyent, Inc.
  27   27  
  28   28  include         ../Makefile.cmd
  29   29  
  30   30  PROG =          oawk
  31   31  LINKPROG =      awk
  32   32  
  33   33  SRCS =          b.c lib.c main.c parse.c run.c tran.c
  34   34  
  35   35  #TXTS =         README EXPLAIN
  36   36  
↓ open down ↓ 14 lines elided ↑ open up ↑
  51   51  $(MAKEPRCTAB) :=        CC = $(NATIVECC)
  52   52  $(MAKEPRCTAB) :=        POST_PROCESS=
  53   53  $(MAKEPRCTAB) :=        POST_PROCESS_O=
  54   54  $(MAKEPRCTAB) :=        NATIVE_LIBS += libm.so libc.so
  55   55  
  56   56  CLEANFILES =    proctab.c y.tab.h y.tab.c awk.h awk.g.c         \
  57   57                  tmptoken.c awk.lx.c $(NATIVEOBJS) $(MAKEPRCTAB) \
  58   58                  temp
  59   59  
  60   60  YFLAGS =        -d
  61      -XLDLIBS5CC +=   -lm
  62      -LDLIBS +=       -lm
       61 +LDLIBS += -lm
  63   62  CPPFLAGS =      -I. $(CPPFLAGS.master)
  64   63  CPPFLAGS +=     -D_FILE_OFFSET_BITS=64
  65   64  
  66   65  ROOTLINK =      $(LINKPROG:%=$(ROOTBIN)/%)
  67   66  
  68   67  CERRWARN +=     -_gcc=-Wno-implicit-function-declaration
  69   68  CERRWARN +=     -_gcc=-Wno-unused-label
  70   69  CERRWARN +=     -_gcc=-Wno-unused-variable
  71   70  CERRWARN +=     -_gcc=-Wno-extra
  72   71  CERRWARN +=     -_gcc=-Wno-parentheses
↓ open down ↓ 56 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX