1047 $(AIOOBJS) \
1048 $(RTOBJS) \
1049 $(SECFLAGSOBJS) \
1050 $(TPOOLOBJS) \
1051 $(THREADSOBJS) \
1052 $(THREADSMACHOBJS) \
1053 $(THREADSASMOBJS) \
1054 $(UNICODEOBJS) \
1055 $(UNWINDMACHOBJS) \
1056 $(UNWINDASMOBJS) \
1057 $(COMSYSOBJS) \
1058 $(SYSOBJS) \
1059 $(COMSYSOBJS64) \
1060 $(SYSOBJS64) \
1061 $(VALUES)
1062
1063 TRACEOBJS= \
1064 plockstat.o
1065
1066 # NOTE: libc.so.1 must be linked with the minimal crti.o and crtn.o
1067 # modules whose source is provided in the $(SRC)/lib/common directory.
1068 # This must be done because otherwise the Sun C compiler would insert
1069 # its own versions of these modules and those versions contain code
1070 # to call out to C++ initialization functions. Such C++ initialization
1071 # functions can call back into libc before thread initialization is
1072 # complete and this leads to segmentation violations and other problems.
1073 # Since libc contains no C++ code, linking with the minimal crti.o and
1074 # crtn.o modules is safe and avoids the problems described above.
1075 OBJECTS= $(CRTI) $(MOSTOBJS) $(CRTN)
1076 CRTSRCS= ../../common/sparc
1077
1078 # include common library definitions
1079 include $(SRC)/lib/Makefile.lib
1080
1081 # we need to override the default SONAME here because we might
1082 # be building a variant object (still libc.so.1, but different filename)
1083 SONAME = libc.so.1
1084
1085 CFLAGS += $(CCVERBOSE)
1086
1087 # This is necessary to avoid problems with calling _ex_unwind().
1088 # We probably don't want any inlining anyway.
1089 CFLAGS += -xinline=
1090
1091 CERRWARN += -_gcc=-Wno-parentheses
1092 CERRWARN += -_gcc=-Wno-switch
1093 CERRWARN += -_gcc=-Wno-uninitialized
1094 CERRWARN += -_gcc=-Wno-unused-value
1095 CERRWARN += -_gcc=-Wno-unused-label
1096 CERRWARN += -_gcc=-Wno-unused-variable
|
1047 $(AIOOBJS) \
1048 $(RTOBJS) \
1049 $(SECFLAGSOBJS) \
1050 $(TPOOLOBJS) \
1051 $(THREADSOBJS) \
1052 $(THREADSMACHOBJS) \
1053 $(THREADSASMOBJS) \
1054 $(UNICODEOBJS) \
1055 $(UNWINDMACHOBJS) \
1056 $(UNWINDASMOBJS) \
1057 $(COMSYSOBJS) \
1058 $(SYSOBJS) \
1059 $(COMSYSOBJS64) \
1060 $(SYSOBJS64) \
1061 $(VALUES)
1062
1063 TRACEOBJS= \
1064 plockstat.o
1065
1066 # NOTE: libc.so.1 must be linked with the minimal crti.o and crtn.o
1067 # modules whose source is provided in the $(SRC)/lib/crt directory.
1068 # This must be done because otherwise the Sun C compiler would insert
1069 # its own versions of these modules and those versions contain code
1070 # to call out to C++ initialization functions. Such C++ initialization
1071 # functions can call back into libc before thread initialization is
1072 # complete and this leads to segmentation violations and other problems.
1073 # Since libc contains no C++ code, linking with the minimal crti.o and
1074 # crtn.o modules is safe and avoids the problems described above.
1075 OBJECTS= $(CRTI) $(MOSTOBJS) $(CRTN)
1076 CRTSRCS= ../../crt/sparcv7
1077
1078 # include common library definitions
1079 include $(SRC)/lib/Makefile.lib
1080
1081 # we need to override the default SONAME here because we might
1082 # be building a variant object (still libc.so.1, but different filename)
1083 SONAME = libc.so.1
1084
1085 CFLAGS += $(CCVERBOSE)
1086
1087 # This is necessary to avoid problems with calling _ex_unwind().
1088 # We probably don't want any inlining anyway.
1089 CFLAGS += -xinline=
1090
1091 CERRWARN += -_gcc=-Wno-parentheses
1092 CERRWARN += -_gcc=-Wno-switch
1093 CERRWARN += -_gcc=-Wno-uninitialized
1094 CERRWARN += -_gcc=-Wno-unused-value
1095 CERRWARN += -_gcc=-Wno-unused-label
1096 CERRWARN += -_gcc=-Wno-unused-variable
|