Print this page
8609 want a position independent CRT


 987         $(AIOOBJS)              \
 988         $(RTOBJS)               \
 989         $(SECFLAGSOBJS)         \
 990         $(TPOOLOBJS)            \
 991         $(THREADSOBJS)          \
 992         $(THREADSMACHOBJS)      \
 993         $(THREADSASMOBJS)       \
 994         $(UNICODEOBJS)          \
 995         $(UNWINDMACHOBJS)       \
 996         $(UNWINDASMOBJS)        \
 997         $(COMSYSOBJS)           \
 998         $(SYSOBJS)              \
 999         $(COMSYSOBJS64)         \
1000         $(SYSOBJS64)            \
1001         $(VALUES)
1002 
1003 TRACEOBJS=                      \
1004         plockstat.o
1005 
1006 # NOTE: libc.so.1 must be linked with the minimal crti.o and crtn.o
1007 # modules whose source is provided in the $(SRC)/lib/common directory.
1008 # This must be done because otherwise the Sun C compiler would insert
1009 # its own versions of these modules and those versions contain code
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= ../../common/sparcv9
1017 
1018 # include common library definitions
1019 include $(SRC)/lib/Makefile.lib
1020 include $(SRC)/lib/Makefile.lib.64
1021 
1022 # we need to override the default SONAME here because we might
1023 # be building a variant object (still libc.so.1, but different filename)
1024 SONAME = libc.so.1
1025 
1026 CFLAGS64 += $(CCVERBOSE)
1027 
1028 # This is necessary to avoid problems with calling _ex_unwind().
1029 # We probably don't want any inlining anyway.
1030 CFLAGS64 += -xinline=
1031 
1032 CERRWARN += -_gcc=-Wno-parentheses
1033 CERRWARN += -_gcc=-Wno-switch
1034 CERRWARN += -_gcc=-Wno-uninitialized
1035 CERRWARN += -_gcc=-Wno-unused-value
1036 CERRWARN += -_gcc=-Wno-unused-label




 987         $(AIOOBJS)              \
 988         $(RTOBJS)               \
 989         $(SECFLAGSOBJS)         \
 990         $(TPOOLOBJS)            \
 991         $(THREADSOBJS)          \
 992         $(THREADSMACHOBJS)      \
 993         $(THREADSASMOBJS)       \
 994         $(UNICODEOBJS)          \
 995         $(UNWINDMACHOBJS)       \
 996         $(UNWINDASMOBJS)        \
 997         $(COMSYSOBJS)           \
 998         $(SYSOBJS)              \
 999         $(COMSYSOBJS64)         \
1000         $(SYSOBJS64)            \
1001         $(VALUES)
1002 
1003 TRACEOBJS=                      \
1004         plockstat.o
1005 
1006 # NOTE: libc.so.1 must be linked with the minimal crti.o and crtn.o
1007 # modules whose source is provided in the $(SRC)/lib/crt directory.
1008 # This must be done because otherwise the Sun C compiler would insert
1009 # its own versions of these modules and those versions contain code
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/sparcv9
1017 
1018 # include common library definitions
1019 include $(SRC)/lib/Makefile.lib
1020 include $(SRC)/lib/Makefile.lib.64
1021 
1022 # we need to override the default SONAME here because we might
1023 # be building a variant object (still libc.so.1, but different filename)
1024 SONAME = libc.so.1
1025 
1026 CFLAGS64 += $(CCVERBOSE)
1027 
1028 # This is necessary to avoid problems with calling _ex_unwind().
1029 # We probably don't want any inlining anyway.
1030 CFLAGS64 += -xinline=
1031 
1032 CERRWARN += -_gcc=-Wno-parentheses
1033 CERRWARN += -_gcc=-Wno-switch
1034 CERRWARN += -_gcc=-Wno-uninitialized
1035 CERRWARN += -_gcc=-Wno-unused-value
1036 CERRWARN += -_gcc=-Wno-unused-label