Print this page
use thread_local for ntoa buf


1118 # in order to avoid critical region problems.  Since almost all libc symbols
1119 # are marked 'protected' in the mapfiles, this is a minimal set (15 to 20).
1120 DYNFLAGS +=     -znow
1121 
1122 DYNFLAGS +=     -e __rtboot
1123 DYNFLAGS +=     $(EXTN_DYNFLAGS)
1124 
1125 # Inform the kernel about the initial DTrace area (in case
1126 # libc is being used as the interpreter / runtime linker).
1127 DTRACE_DATA =   -zdtrace=dtrace_data
1128 DYNFLAGS +=     $(DTRACE_DATA)
1129 
1130 # DTrace needs an executable data segment.
1131 MAPFILE.NED=
1132 
1133 BUILD.s=        $(AS) $(ASFLAGS) $< -o $@
1134 
1135 # Override this top level flag so the compiler builds in its native
1136 # C99 mode.  This has been enabled to support the complex arithmetic
1137 # added to libc.
1138 CSTD=   $(CSTD_GNU99)
1139 
1140 # libc method of building an archive
1141 # The "$(GREP) -v ' L '" part is necessary only until
1142 # lorder is fixed to ignore thread-local variables.
1143 BUILD.AR= $(RM) $@ ; \
1144         $(AR) q $@ `$(LORDER) $(MOSTOBJS:%=$(DIR)/%) | $(GREP) -v ' L ' | $(TSORT)`
1145 
1146 # extra files for the clean target
1147 CLEANFILES +=                   \
1148         $(LIBCDIR)/port/gen/errlst.c    \
1149         $(LIBCDIR)/port/gen/new_list.c  \
1150         assym.h                 \
1151         genassym                \
1152         crt/_rtld.s             \
1153         crt/_rtbootld.s         \
1154         pics/_rtbootld.o        \
1155         pics/crti.o             \
1156         pics/crtn.o             \
1157         $(ALTPICS)
1158 




1118 # in order to avoid critical region problems.  Since almost all libc symbols
1119 # are marked 'protected' in the mapfiles, this is a minimal set (15 to 20).
1120 DYNFLAGS +=     -znow
1121 
1122 DYNFLAGS +=     -e __rtboot
1123 DYNFLAGS +=     $(EXTN_DYNFLAGS)
1124 
1125 # Inform the kernel about the initial DTrace area (in case
1126 # libc is being used as the interpreter / runtime linker).
1127 DTRACE_DATA =   -zdtrace=dtrace_data
1128 DYNFLAGS +=     $(DTRACE_DATA)
1129 
1130 # DTrace needs an executable data segment.
1131 MAPFILE.NED=
1132 
1133 BUILD.s=        $(AS) $(ASFLAGS) $< -o $@
1134 
1135 # Override this top level flag so the compiler builds in its native
1136 # C99 mode.  This has been enabled to support the complex arithmetic
1137 # added to libc.
1138 CSTD=   $(CSTD_GNU11)
1139 
1140 # libc method of building an archive
1141 # The "$(GREP) -v ' L '" part is necessary only until
1142 # lorder is fixed to ignore thread-local variables.
1143 BUILD.AR= $(RM) $@ ; \
1144         $(AR) q $@ `$(LORDER) $(MOSTOBJS:%=$(DIR)/%) | $(GREP) -v ' L ' | $(TSORT)`
1145 
1146 # extra files for the clean target
1147 CLEANFILES +=                   \
1148         $(LIBCDIR)/port/gen/errlst.c    \
1149         $(LIBCDIR)/port/gen/new_list.c  \
1150         assym.h                 \
1151         genassym                \
1152         crt/_rtld.s             \
1153         crt/_rtbootld.s         \
1154         pics/_rtbootld.o        \
1155         pics/crti.o             \
1156         pics/crtn.o             \
1157         $(ALTPICS)
1158