Print this page
5465 CFLAGS missing from BUILD.SO in lib/Makefile.lib
   1 #
   2 # CDDL HEADER START
   3 #
   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #

  21 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  22 #
  23 #
  24 # Definitions common to libraries.
  25 #
  26 # include global definitions; SRC should be defined in the shell.
  27 # SRC is needed until RFE 1026993 is implemented.
  28 
  29 include         $(SRC)/Makefile.master
  30 
  31 LORDER=         lorder
  32 TSORT=          tsort
  33 AWK=            awk
  34 
  35 #
  36 # By default, we define the source directory for libraries to be
  37 # one level up from the ISA-specific directory, where the code is
  38 # actually built.  Many libraries define a 'common' directory to
  39 # contain the source.  These libraries must redefine SRCDIR as:
  40 #       SRCDIR = ../common


 138 HSONAME=        -h$(SONAME)
 139 DYNFLAGS=       $(HSONAME) $(ZTEXT) $(ZDEFS) $(BDIRECT) \
 140                 $(MAPFILES:%=-M%) $(MAPFILE.PGA:%=-M%) $(MAPFILE.NED:%=-M%)
 141 
 142 LDLIBS=         $(LDLIBS.lib)
 143 
 144 OBJS=           $(OBJECTS:%=objs/%)
 145 PICS=           $(OBJECTS:%=pics/%)
 146 
 147 # Declare that all library .o's can all be made in parallel.
 148 # The DUMMY target is for those instances where OBJS and PICS
 149 # are empty (to avoid an unconditional .PARALLEL declaration).
 150 .PARALLEL:      $(OBJS) $(PICS) DUMMY
 151 
 152 # default value for "portable" source
 153 SRCS=           $(OBJECTS:%.o=$(SRCDIR)/%.c)
 154 
 155 # default build of an archive and a shared object,
 156 # overridden locally when extra processing is needed
 157 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)


 160 
 161 # default dynamic library symlink
 162 INS.liblink=    -$(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKS)$(VERS) $@
 163 INS.liblinkccc= -$(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKSCCC)$(VERS) $@
 164 
 165 # default 64-bit dynamic library symlink
 166 INS.liblink64=  -$(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKS)$(VERS) $@
 167 INS.liblinkccc64= -$(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKSCCC)$(VERS) $@
 168 
 169 #
 170 # If appropriate, augment POST_PROCESS_O and POST_PROCESS_SO to do CTF
 171 # processing.  We'd like to just conditionally append to POST_PROCESS_O and
 172 # POST_PROCESS_SO, but ParallelMake has a bug which causes the same value to
 173 # sometimes get appended more than once, which will cause ctfconvert to fail.
 174 # So, instead we introduce CTFCONVERT_POST and CTFMERGE_POST, which are always
 175 # appended to POST_PROCESS_O and POST_PROCESS_SO but are no-ops unless CTF
 176 # processing should be done.
 177 #
 178 CTFCONVERT_POST = :
 179 CTFMERGE_POST   = :


   1 #
   2 # CDDL HEADER START
   3 #
   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 # Copyright 2015 Gary Mills
  22 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  23 #
  24 #
  25 # Definitions common to libraries.
  26 #
  27 # include global definitions; SRC should be defined in the shell.
  28 # SRC is needed until RFE 1026993 is implemented.
  29 
  30 include         $(SRC)/Makefile.master
  31 
  32 LORDER=         lorder
  33 TSORT=          tsort
  34 AWK=            awk
  35 
  36 #
  37 # By default, we define the source directory for libraries to be
  38 # one level up from the ISA-specific directory, where the code is
  39 # actually built.  Many libraries define a 'common' directory to
  40 # contain the source.  These libraries must redefine SRCDIR as:
  41 #       SRCDIR = ../common


 139 HSONAME=        -h$(SONAME)
 140 DYNFLAGS=       $(HSONAME) $(ZTEXT) $(ZDEFS) $(BDIRECT) \
 141                 $(MAPFILES:%=-M%) $(MAPFILE.PGA:%=-M%) $(MAPFILE.NED:%=-M%)
 142 
 143 LDLIBS=         $(LDLIBS.lib)
 144 
 145 OBJS=           $(OBJECTS:%=objs/%)
 146 PICS=           $(OBJECTS:%=pics/%)
 147 
 148 # Declare that all library .o's can all be made in parallel.
 149 # The DUMMY target is for those instances where OBJS and PICS
 150 # are empty (to avoid an unconditional .PARALLEL declaration).
 151 .PARALLEL:      $(OBJS) $(PICS) DUMMY
 152 
 153 # default value for "portable" source
 154 SRCS=           $(OBJECTS:%.o=$(SRCDIR)/%.c)
 155 
 156 # default build of an archive and a shared object,
 157 # overridden locally when extra processing is needed
 158 BUILD.AR=       $(AR) $(ARFLAGS) $@ $(AROBJS)
 159 BUILD.SO=       $(CC) $(CFLAGS) -o $@ $(GSHARED) $(DYNFLAGS) \
 160                 $(PICS) $(EXTPICS) $(LDLIBS)
 161 BUILDCCC.SO=    $(CCC) $(CCFLAGS) -o $@ $(GSHARED) $(DYNFLAGS) \
 162                 $(PICS) $(EXTPICS) $(LDLIBS)
 163 
 164 # default dynamic library symlink
 165 INS.liblink=    -$(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKS)$(VERS) $@
 166 INS.liblinkccc= -$(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKSCCC)$(VERS) $@
 167 
 168 # default 64-bit dynamic library symlink
 169 INS.liblink64=  -$(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKS)$(VERS) $@
 170 INS.liblinkccc64= -$(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKSCCC)$(VERS) $@
 171 
 172 #
 173 # If appropriate, augment POST_PROCESS_O and POST_PROCESS_SO to do CTF
 174 # processing.  We'd like to just conditionally append to POST_PROCESS_O and
 175 # POST_PROCESS_SO, but ParallelMake has a bug which causes the same value to
 176 # sometimes get appended more than once, which will cause ctfconvert to fail.
 177 # So, instead we introduce CTFCONVERT_POST and CTFMERGE_POST, which are always
 178 # appended to POST_PROCESS_O and POST_PROCESS_SO but are no-ops unless CTF
 179 # processing should be done.
 180 #
 181 CTFCONVERT_POST = :
 182 CTFMERGE_POST   = :