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


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


1027 # crtn.o modules is safe and avoids the problems described above.
1028 OBJECTS= $(CRTI) $(MOSTOBJS) $(CRTN)
1029 CRTSRCS= ../../crt/sparc
1030 
1031 # include common library definitions
1032 include $(SRC)/lib/Makefile.lib
1033 include $(SRC)/lib/Makefile.lib.64
1034 
1035 # we need to override the default SONAME here because we might
1036 # be building a variant object (still libc.so.1, but different filename)
1037 SONAME = libc.so.1
1038 
1039 CFLAGS64 += $(CCVERBOSE)
1040 
1041 # This is necessary to avoid problems with calling _ex_unwind().
1042 # We probably don't want any inlining anyway.
1043 CFLAGS64 += -xinline=
1044 
1045 CERRWARN += -_gcc=-Wno-parentheses
1046 CERRWARN += -_gcc=-Wno-switch
1047 CERRWARN += -_gcc=-Wno-uninitialized
1048 CERRWARN += -_gcc=-Wno-unused-value
1049 CERRWARN += -_gcc=-Wno-unused-label
1050 CERRWARN += -_gcc=-Wno-unused-variable
1051 CERRWARN += -_gcc=-Wno-type-limits
1052 CERRWARN += -_gcc=-Wno-char-subscripts
1053 CERRWARN += -_gcc=-Wno-clobbered
1054 CERRWARN += -_gcc=-Wno-unused-function
1055 CERRWARN += -_gcc=-Wno-address
1056 
1057 # Setting THREAD_DEBUG = -DTHREAD_DEBUG (make THREAD_DEBUG=-DTHREAD_DEBUG ...)
1058 # enables ASSERT() checking in the threads portion of the library.
1059 # This is automatically enabled for DEBUG builds, not for non-debug builds.
1060 THREAD_DEBUG =
1061 $(NOT_RELEASE_BUILD)THREAD_DEBUG = -DTHREAD_DEBUG
1062 
1063 # Make string literals read-only to save memory.
1064 CFLAGS64 += $(XSTRCONST)
1065 
1066 ALTPICS= $(TRACEOBJS:%=pics/%)
1067 




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


1027 # crtn.o modules is safe and avoids the problems described above.
1028 OBJECTS= $(CRTI) $(MOSTOBJS) $(CRTN)
1029 CRTSRCS= ../../crt/sparc
1030 
1031 # include common library definitions
1032 include $(SRC)/lib/Makefile.lib
1033 include $(SRC)/lib/Makefile.lib.64
1034 
1035 # we need to override the default SONAME here because we might
1036 # be building a variant object (still libc.so.1, but different filename)
1037 SONAME = libc.so.1
1038 
1039 CFLAGS64 += $(CCVERBOSE)
1040 
1041 # This is necessary to avoid problems with calling _ex_unwind().
1042 # We probably don't want any inlining anyway.
1043 CFLAGS64 += -xinline=
1044 
1045 CERRWARN += -_gcc=-Wno-parentheses
1046 CERRWARN += -_gcc=-Wno-switch
1047 CERRWARN += $(CNOWARN_UNINIT)
1048 CERRWARN += -_gcc=-Wno-unused-value
1049 CERRWARN += -_gcc=-Wno-unused-label
1050 CERRWARN += -_gcc=-Wno-unused-variable
1051 CERRWARN += -_gcc=-Wno-type-limits
1052 CERRWARN += -_gcc=-Wno-char-subscripts
1053 CERRWARN += -_gcc=-Wno-clobbered
1054 CERRWARN += -_gcc=-Wno-unused-function
1055 CERRWARN += -_gcc=-Wno-address
1056 
1057 # Setting THREAD_DEBUG = -DTHREAD_DEBUG (make THREAD_DEBUG=-DTHREAD_DEBUG ...)
1058 # enables ASSERT() checking in the threads portion of the library.
1059 # This is automatically enabled for DEBUG builds, not for non-debug builds.
1060 THREAD_DEBUG =
1061 $(NOT_RELEASE_BUILD)THREAD_DEBUG = -DTHREAD_DEBUG
1062 
1063 # Make string literals read-only to save memory.
1064 CFLAGS64 += $(XSTRCONST)
1065 
1066 ALTPICS= $(TRACEOBJS:%=pics/%)
1067