Print this page
8609 want a position independent CRT


 974         $(AIOOBJS)              \
 975         $(RTOBJS)               \
 976         $(SECFLAGSOBJS)         \
 977         $(TPOOLOBJS)            \
 978         $(THREADSOBJS)          \
 979         $(THREADSMACHOBJS)      \
 980         $(THREADSASMOBJS)       \
 981         $(UNICODEOBJS)          \
 982         $(UNWINDMACHOBJS)       \
 983         $(UNWINDASMOBJS)        \
 984         $(COMSYSOBJS)           \
 985         $(SYSOBJS)              \
 986         $(COMSYSOBJS64)         \
 987         $(SYSOBJS64)            \
 988         $(VALUES)
 989 
 990 TRACEOBJS=                      \
 991         plockstat.o
 992 
 993 # NOTE: libc.so.1 must be linked with the minimal crti.o and crtn.o
 994 # modules whose source is provided in the $(SRC)/lib/common directory.
 995 # This must be done because otherwise the Sun C compiler would insert
 996 # its own versions of these modules and those versions contain code
 997 # to call out to C++ initialization functions.  Such C++ initialization
 998 # functions can call back into libc before thread initialization is
 999 # complete and this leads to segmentation violations and other problems.
1000 # Since libc contains no C++ code, linking with the minimal crti.o and
1001 # crtn.o modules is safe and avoids the problems described above.
1002 OBJECTS= $(CRTI) $(MOSTOBJS) $(CRTN)
1003 CRTSRCS= ../../common/amd64
1004 
1005 # include common library definitions
1006 include ../../Makefile.lib
1007 include ../../Makefile.lib.64
1008 
1009 CFLAGS64 += $(CTF_FLAGS)
1010 
1011 # This is necessary to avoid problems with calling _ex_unwind().
1012 # We probably don't want any inlining anyway.
1013 CFLAGS64 += -xinline=
1014 
1015 CERRWARN += -_gcc=-Wno-parentheses
1016 CERRWARN += -_gcc=-Wno-switch
1017 CERRWARN += -_gcc=-Wno-uninitialized
1018 CERRWARN += -_gcc=-Wno-unused-value
1019 CERRWARN += -_gcc=-Wno-unused-label
1020 CERRWARN += -_gcc=-Wno-unused-variable
1021 CERRWARN += -_gcc=-Wno-type-limits
1022 CERRWARN += -_gcc=-Wno-char-subscripts
1023 CERRWARN += -_gcc=-Wno-clobbered




 974         $(AIOOBJS)              \
 975         $(RTOBJS)               \
 976         $(SECFLAGSOBJS)         \
 977         $(TPOOLOBJS)            \
 978         $(THREADSOBJS)          \
 979         $(THREADSMACHOBJS)      \
 980         $(THREADSASMOBJS)       \
 981         $(UNICODEOBJS)          \
 982         $(UNWINDMACHOBJS)       \
 983         $(UNWINDASMOBJS)        \
 984         $(COMSYSOBJS)           \
 985         $(SYSOBJS)              \
 986         $(COMSYSOBJS64)         \
 987         $(SYSOBJS64)            \
 988         $(VALUES)
 989 
 990 TRACEOBJS=                      \
 991         plockstat.o
 992 
 993 # NOTE: libc.so.1 must be linked with the minimal crti.o and crtn.o
 994 # modules whose source is provided in the $(SRC)/lib/crt directory.
 995 # This must be done because otherwise the Sun C compiler would insert
 996 # its own versions of these modules and those versions contain code
 997 # to call out to C++ initialization functions.  Such C++ initialization
 998 # functions can call back into libc before thread initialization is
 999 # complete and this leads to segmentation violations and other problems.
1000 # Since libc contains no C++ code, linking with the minimal crti.o and
1001 # crtn.o modules is safe and avoids the problems described above.
1002 OBJECTS= $(CRTI) $(MOSTOBJS) $(CRTN)
1003 CRTSRCS= ../../crt/amd64
1004 
1005 # include common library definitions
1006 include ../../Makefile.lib
1007 include ../../Makefile.lib.64
1008 
1009 CFLAGS64 += $(CTF_FLAGS)
1010 
1011 # This is necessary to avoid problems with calling _ex_unwind().
1012 # We probably don't want any inlining anyway.
1013 CFLAGS64 += -xinline=
1014 
1015 CERRWARN += -_gcc=-Wno-parentheses
1016 CERRWARN += -_gcc=-Wno-switch
1017 CERRWARN += -_gcc=-Wno-uninitialized
1018 CERRWARN += -_gcc=-Wno-unused-value
1019 CERRWARN += -_gcc=-Wno-unused-label
1020 CERRWARN += -_gcc=-Wno-unused-variable
1021 CERRWARN += -_gcc=-Wno-type-limits
1022 CERRWARN += -_gcc=-Wno-char-subscripts
1023 CERRWARN += -_gcc=-Wno-clobbered