Print this page
5465 CFLAGS missing from BUILD.SO in lib/Makefile.lib

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/Makefile.lib
          +++ new/usr/src/lib/Makefile.lib
↓ open down ↓ 10 lines elided ↑ open up ↑
  11   11  # and limitations under the License.
  12   12  #
  13   13  # When distributing Covered Code, include this CDDL HEADER in each
  14   14  # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15  # If applicable, add the following below this CDDL HEADER, with the
  16   16  # fields enclosed by brackets "[]" replaced with your own identifying
  17   17  # information: Portions Copyright [yyyy] [name of copyright owner]
  18   18  #
  19   19  # CDDL HEADER END
  20   20  #
       21 +# Copyright 2015 Gary Mills
  21   22  # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  22   23  #
  23   24  #
  24   25  # Definitions common to libraries.
  25   26  #
  26   27  # include global definitions; SRC should be defined in the shell.
  27   28  # SRC is needed until RFE 1026993 is implemented.
  28   29  
  29   30  include         $(SRC)/Makefile.master
  30   31  
↓ open down ↓ 117 lines elided ↑ open up ↑
 148  149  # The DUMMY target is for those instances where OBJS and PICS
 149  150  # are empty (to avoid an unconditional .PARALLEL declaration).
 150  151  .PARALLEL:      $(OBJS) $(PICS) DUMMY
 151  152  
 152  153  # default value for "portable" source
 153  154  SRCS=           $(OBJECTS:%.o=$(SRCDIR)/%.c)
 154  155  
 155  156  # default build of an archive and a shared object,
 156  157  # overridden locally when extra processing is needed
 157  158  BUILD.AR=       $(AR) $(ARFLAGS) $@ $(AROBJS)
 158      -BUILD.SO=       $(CC) -o $@ $(GSHARED) $(DYNFLAGS) $(PICS) $(EXTPICS) $(LDLIBS)
 159      -BUILDCCC.SO=    $(CCC) -o $@ $(GSHARED) $(DYNFLAGS) $(PICS) $(EXTPICS) $(LDLIBS)
      159 +BUILD.SO=       $(CC) $(CFLAGS) -o $@ $(GSHARED) $(DYNFLAGS) \
      160 +                $(PICS) $(EXTPICS) $(LDLIBS)
      161 +BUILDCCC.SO=    $(CCC) $(CCFLAGS) -o $@ $(GSHARED) $(DYNFLAGS) \
      162 +                $(PICS) $(EXTPICS) $(LDLIBS)
 160  163  
 161  164  # default dynamic library symlink
 162  165  INS.liblink=    -$(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKS)$(VERS) $@
 163  166  INS.liblinkccc= -$(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKSCCC)$(VERS) $@
 164  167  
 165  168  # default 64-bit dynamic library symlink
 166  169  INS.liblink64=  -$(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKS)$(VERS) $@
 167  170  INS.liblinkccc64= -$(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKSCCC)$(VERS) $@
 168  171  
 169  172  #
↓ open down ↓ 84 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX