Print this page
8609 want a position independent CRT


1016         $(AIOOBJS)              \
1017         $(RTOBJS)               \
1018         $(SECFLAGSOBJS)         \
1019         $(TPOOLOBJS)            \
1020         $(THREADSOBJS)          \
1021         $(THREADSMACHOBJS)      \
1022         $(THREADSASMOBJS)       \
1023         $(UNICODEOBJS)          \
1024         $(UNWINDMACHOBJS)       \
1025         $(UNWINDASMOBJS)        \
1026         $(COMSYSOBJS)           \
1027         $(SYSOBJS)              \
1028         $(COMSYSOBJS64)         \
1029         $(SYSOBJS64)            \
1030         $(VALUES)
1031 
1032 TRACEOBJS=                      \
1033         plockstat.o
1034 
1035 # NOTE: libc.so.1 must be linked with the minimal crti.o and crtn.o
1036 # modules whose source is provided in the $(SRC)/lib/common directory.
1037 # This must be done because otherwise the Sun C compiler would insert
1038 # its own versions of these modules and those versions contain code
1039 # to call out to C++ initialization functions.  Such C++ initialization
1040 # functions can call back into libc before thread initialization is
1041 # complete and this leads to segmentation violations and other problems.
1042 # Since libc contains no C++ code, linking with the minimal crti.o and
1043 # crtn.o modules is safe and avoids the problems described above.
1044 OBJECTS= $(CRTI) $(MOSTOBJS) $(CRTN)
1045 CRTSRCS= ../../common/i386
1046 
1047 LDPASS_OFF=     $(POUND_SIGN)
1048 
1049 # include common library definitions
1050 include ../../Makefile.lib
1051 
1052 # we need to override the default SONAME here because we might
1053 # be building a variant object (still libc.so.1, but different filename)
1054 SONAME = libc.so.1
1055 
1056 CFLAGS += $(CCVERBOSE) $(CTF_FLAGS)
1057 
1058 # This is necessary to avoid problems with calling _ex_unwind().
1059 # We probably don't want any inlining anyway.
1060 XINLINE = -xinline=
1061 CFLAGS += $(XINLINE)
1062 
1063 CERRWARN += -_gcc=-Wno-parentheses
1064 CERRWARN += -_gcc=-Wno-switch
1065 CERRWARN += -_gcc=-Wno-uninitialized




1016         $(AIOOBJS)              \
1017         $(RTOBJS)               \
1018         $(SECFLAGSOBJS)         \
1019         $(TPOOLOBJS)            \
1020         $(THREADSOBJS)          \
1021         $(THREADSMACHOBJS)      \
1022         $(THREADSASMOBJS)       \
1023         $(UNICODEOBJS)          \
1024         $(UNWINDMACHOBJS)       \
1025         $(UNWINDASMOBJS)        \
1026         $(COMSYSOBJS)           \
1027         $(SYSOBJS)              \
1028         $(COMSYSOBJS64)         \
1029         $(SYSOBJS64)            \
1030         $(VALUES)
1031 
1032 TRACEOBJS=                      \
1033         plockstat.o
1034 
1035 # NOTE: libc.so.1 must be linked with the minimal crti.o and crtn.o
1036 # modules whose source is provided in the $(SRC)/lib/crt directory.
1037 # This must be done because otherwise the Sun C compiler would insert
1038 # its own versions of these modules and those versions contain code
1039 # to call out to C++ initialization functions.  Such C++ initialization
1040 # functions can call back into libc before thread initialization is
1041 # complete and this leads to segmentation violations and other problems.
1042 # Since libc contains no C++ code, linking with the minimal crti.o and
1043 # crtn.o modules is safe and avoids the problems described above.
1044 OBJECTS= $(CRTI) $(MOSTOBJS) $(CRTN)
1045 CRTSRCS= ../../crt/i86
1046 
1047 LDPASS_OFF=     $(POUND_SIGN)
1048 
1049 # include common library definitions
1050 include ../../Makefile.lib
1051 
1052 # we need to override the default SONAME here because we might
1053 # be building a variant object (still libc.so.1, but different filename)
1054 SONAME = libc.so.1
1055 
1056 CFLAGS += $(CCVERBOSE) $(CTF_FLAGS)
1057 
1058 # This is necessary to avoid problems with calling _ex_unwind().
1059 # We probably don't want any inlining anyway.
1060 XINLINE = -xinline=
1061 CFLAGS += $(XINLINE)
1062 
1063 CERRWARN += -_gcc=-Wno-parentheses
1064 CERRWARN += -_gcc=-Wno-switch
1065 CERRWARN += -_gcc=-Wno-uninitialized