Print this page
use thread_local for ntoa buf

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libc/amd64/Makefile
          +++ new/usr/src/lib/libc/amd64/Makefile
↓ open down ↓ 1067 lines elided ↑ open up ↑
1068 1068  # Force libc's internal references to be resolved immediately upon loading
1069 1069  # in order to avoid critical region problems.  Since almost all libc symbols
1070 1070  # are marked 'protected' in the mapfiles, this is a minimal set (15 to 20).
1071 1071  DYNFLAGS +=     -znow
1072 1072  
1073 1073  BUILD.s=        $(AS) $(ASFLAGS) $< -o $@
1074 1074  
1075 1075  # Override this top level flag so the compiler builds in its native
1076 1076  # C99 mode.  This has been enabled to support the complex arithmetic
1077 1077  # added to libc.
1078      -CSTD=   $(CSTD_GNU99)
     1078 +CSTD=   $(CSTD_GNU11)
1079 1079  
1080 1080  # libc method of building an archive
1081 1081  # The "$(GREP) -v ' L '" part is necessary only until
1082 1082  # lorder is fixed to ignore thread-local variables.
1083 1083  BUILD.AR= $(RM) $@ ; \
1084 1084          $(AR) q $@ `$(LORDER) $(MOSTOBJS:%=$(DIR)/%) | $(GREP) -v ' L ' | $(TSORT)`
1085 1085  
1086 1086  # extra files for the clean target
1087 1087  CLEANFILES +=                   \
1088 1088          $(LIBCDIR)/port/gen/errlst.c    \
↓ open down ↓ 190 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX