Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized


   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 
  22 #
  23 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  24 # Copyright 2016 Joyent, Inc.
  25 # Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved.
  26 # Copyright 2013 Garrett D'Amore <garrett@damore.org>
  27 # Copyright 2018 Nexenta Systems, Inc.
  28 # Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
  29 # Copyright 2019 Peter Tribble.
  30 #
  31 
  32 LIBCDIR=        $(SRC)/lib/libc
  33 LIB_PIC=        libc_pic.a
  34 VERS=           .1
  35 CPP=            /usr/lib/cpp
  36 TARGET_ARCH=    sparc
  37 
  38 # objects are grouped by source directory
  39 
  40 # Symbol capabilities objects.
  41 EXTPICS=                        \
  42         $(LIBCDIR)/capabilities/sun4u/sparc/pics/symcap.o \
  43         $(LIBCDIR)/capabilities/sun4u-opl/sparc/pics/symcap.o \
  44         $(LIBCDIR)/capabilities/sun4u-us3-hwcap1/sparc/pics/symcap.o \


1087 # Since libc contains no C++ code, linking with the minimal crti.o and
1088 # crtn.o modules is safe and avoids the problems described above.
1089 OBJECTS= $(CRTI) $(MOSTOBJS) $(CRTN)
1090 CRTSRCS= ../../crt/sparc
1091 
1092 # include common library definitions
1093 include $(SRC)/lib/Makefile.lib
1094 
1095 # we need to override the default SONAME here because we might
1096 # be building a variant object (still libc.so.1, but different filename)
1097 SONAME = libc.so.1
1098 
1099 CFLAGS += $(CCVERBOSE)
1100 
1101 # This is necessary to avoid problems with calling _ex_unwind().
1102 # We probably don't want any inlining anyway.
1103 CFLAGS += -xinline=
1104 
1105 CERRWARN += -_gcc=-Wno-parentheses
1106 CERRWARN += -_gcc=-Wno-switch
1107 CERRWARN += -_gcc=-Wno-uninitialized
1108 CERRWARN += -_gcc=-Wno-unused-value
1109 CERRWARN += -_gcc=-Wno-unused-label
1110 CERRWARN += -_gcc=-Wno-unused-variable
1111 CERRWARN += -_gcc=-Wno-type-limits
1112 CERRWARN += -_gcc=-Wno-char-subscripts
1113 CERRWARN += -_gcc=-Wno-clobbered
1114 CERRWARN += -_gcc=-Wno-unused-function
1115 CERRWARN += -_gcc=-Wno-address
1116 
1117 # Setting THREAD_DEBUG = -DTHREAD_DEBUG (make THREAD_DEBUG=-DTHREAD_DEBUG ...)
1118 # enables ASSERT() checking in the threads portion of the library.
1119 # This is automatically enabled for DEBUG builds, not for non-debug builds.
1120 THREAD_DEBUG =
1121 $(NOT_RELEASE_BUILD)THREAD_DEBUG = -DTHREAD_DEBUG
1122 
1123 # Make string literals read-only to save memory.
1124 CFLAGS += $(XSTRCONST)
1125 
1126 ALTPICS= $(TRACEOBJS:%=pics/%)
1127 




   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 
  22 #
  23 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  24 # Copyright 2019 Joyent, Inc.
  25 # Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved.
  26 # Copyright 2013 Garrett D'Amore <garrett@damore.org>
  27 # Copyright 2018 Nexenta Systems, Inc.
  28 # Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
  29 # Copyright 2019 Peter Tribble.
  30 #
  31 
  32 LIBCDIR=        $(SRC)/lib/libc
  33 LIB_PIC=        libc_pic.a
  34 VERS=           .1
  35 CPP=            /usr/lib/cpp
  36 TARGET_ARCH=    sparc
  37 
  38 # objects are grouped by source directory
  39 
  40 # Symbol capabilities objects.
  41 EXTPICS=                        \
  42         $(LIBCDIR)/capabilities/sun4u/sparc/pics/symcap.o \
  43         $(LIBCDIR)/capabilities/sun4u-opl/sparc/pics/symcap.o \
  44         $(LIBCDIR)/capabilities/sun4u-us3-hwcap1/sparc/pics/symcap.o \


1087 # Since libc contains no C++ code, linking with the minimal crti.o and
1088 # crtn.o modules is safe and avoids the problems described above.
1089 OBJECTS= $(CRTI) $(MOSTOBJS) $(CRTN)
1090 CRTSRCS= ../../crt/sparc
1091 
1092 # include common library definitions
1093 include $(SRC)/lib/Makefile.lib
1094 
1095 # we need to override the default SONAME here because we might
1096 # be building a variant object (still libc.so.1, but different filename)
1097 SONAME = libc.so.1
1098 
1099 CFLAGS += $(CCVERBOSE)
1100 
1101 # This is necessary to avoid problems with calling _ex_unwind().
1102 # We probably don't want any inlining anyway.
1103 CFLAGS += -xinline=
1104 
1105 CERRWARN += -_gcc=-Wno-parentheses
1106 CERRWARN += -_gcc=-Wno-switch
1107 CERRWARN += $(CNOWARN_UNINIT)
1108 CERRWARN += -_gcc=-Wno-unused-value
1109 CERRWARN += -_gcc=-Wno-unused-label
1110 CERRWARN += -_gcc=-Wno-unused-variable
1111 CERRWARN += -_gcc=-Wno-type-limits
1112 CERRWARN += -_gcc=-Wno-char-subscripts
1113 CERRWARN += -_gcc=-Wno-clobbered
1114 CERRWARN += -_gcc=-Wno-unused-function
1115 CERRWARN += -_gcc=-Wno-address
1116 
1117 # Setting THREAD_DEBUG = -DTHREAD_DEBUG (make THREAD_DEBUG=-DTHREAD_DEBUG ...)
1118 # enables ASSERT() checking in the threads portion of the library.
1119 # This is automatically enabled for DEBUG builds, not for non-debug builds.
1120 THREAD_DEBUG =
1121 $(NOT_RELEASE_BUILD)THREAD_DEBUG = -DTHREAD_DEBUG
1122 
1123 # Make string literals read-only to save memory.
1124 CFLAGS += $(XSTRCONST)
1125 
1126 ALTPICS= $(TRACEOBJS:%=pics/%)
1127