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


1010 # to call out to C++ initialization functions.  Such C++ initialization
1011 # functions can call back into libc before thread initialization is
1012 # complete and this leads to segmentation violations and other problems.
1013 # Since libc contains no C++ code, linking with the minimal crti.o and
1014 # crtn.o modules is safe and avoids the problems described above.
1015 OBJECTS= $(CRTI) $(MOSTOBJS) $(CRTN)
1016 CRTSRCS= ../../crt/amd64
1017 
1018 # include common library definitions
1019 include ../../Makefile.lib
1020 include ../../Makefile.lib.64
1021 
1022 CFLAGS64 += $(CTF_FLAGS)
1023 
1024 # This is necessary to avoid problems with calling _ex_unwind().
1025 # We probably don't want any inlining anyway.
1026 CFLAGS64 += -xinline=
1027 
1028 CERRWARN += -_gcc=-Wno-parentheses
1029 CERRWARN += -_gcc=-Wno-switch
1030 CERRWARN += -_gcc=-Wno-uninitialized
1031 CERRWARN += -_gcc=-Wno-unused-value
1032 CERRWARN += -_gcc=-Wno-unused-label
1033 CERRWARN += -_gcc=-Wno-unused-variable
1034 CERRWARN += -_gcc=-Wno-type-limits
1035 CERRWARN += -_gcc=-Wno-char-subscripts
1036 CERRWARN += -_gcc=-Wno-clobbered
1037 CERRWARN += -_gcc=-Wno-unused-function
1038 CERRWARN += -_gcc=-Wno-address
1039 
1040 $(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-unused
1041 
1042 # not linted
1043 SMATCH=off
1044 
1045 # Setting THREAD_DEBUG = -DTHREAD_DEBUG (make THREAD_DEBUG=-DTHREAD_DEBUG ...)
1046 # enables ASSERT() checking in the threads portion of the library.
1047 # This is automatically enabled for DEBUG builds, not for non-debug builds.
1048 THREAD_DEBUG =
1049 $(NOT_RELEASE_BUILD)THREAD_DEBUG = -DTHREAD_DEBUG
1050 




1010 # to call out to C++ initialization functions.  Such C++ initialization
1011 # functions can call back into libc before thread initialization is
1012 # complete and this leads to segmentation violations and other problems.
1013 # Since libc contains no C++ code, linking with the minimal crti.o and
1014 # crtn.o modules is safe and avoids the problems described above.
1015 OBJECTS= $(CRTI) $(MOSTOBJS) $(CRTN)
1016 CRTSRCS= ../../crt/amd64
1017 
1018 # include common library definitions
1019 include ../../Makefile.lib
1020 include ../../Makefile.lib.64
1021 
1022 CFLAGS64 += $(CTF_FLAGS)
1023 
1024 # This is necessary to avoid problems with calling _ex_unwind().
1025 # We probably don't want any inlining anyway.
1026 CFLAGS64 += -xinline=
1027 
1028 CERRWARN += -_gcc=-Wno-parentheses
1029 CERRWARN += -_gcc=-Wno-switch
1030 CERRWARN += $(CNOWARN_UNINIT)
1031 CERRWARN += -_gcc=-Wno-unused-value
1032 CERRWARN += -_gcc=-Wno-unused-label
1033 CERRWARN += -_gcc=-Wno-unused-variable
1034 CERRWARN += -_gcc=-Wno-type-limits
1035 CERRWARN += -_gcc=-Wno-char-subscripts
1036 CERRWARN += -_gcc=-Wno-clobbered
1037 CERRWARN += -_gcc=-Wno-unused-function
1038 CERRWARN += -_gcc=-Wno-address
1039 
1040 $(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-unused
1041 
1042 # not linted
1043 SMATCH=off
1044 
1045 # Setting THREAD_DEBUG = -DTHREAD_DEBUG (make THREAD_DEBUG=-DTHREAD_DEBUG ...)
1046 # enables ASSERT() checking in the threads portion of the library.
1047 # This is automatically enabled for DEBUG builds, not for non-debug builds.
1048 THREAD_DEBUG =
1049 $(NOT_RELEASE_BUILD)THREAD_DEBUG = -DTHREAD_DEBUG
1050