Print this page
9884 cw(1) should use -fpic rather than -Kpic


1050 CERRWARN += -_gcc=-Wno-char-subscripts
1051 CERRWARN += -_gcc=-Wno-clobbered
1052 CERRWARN += -_gcc=-Wno-unused-function
1053 CERRWARN += -_gcc=-Wno-address
1054 
1055 # Setting THREAD_DEBUG = -DTHREAD_DEBUG (make THREAD_DEBUG=-DTHREAD_DEBUG ...)
1056 # enables ASSERT() checking in the threads portion of the library.
1057 # This is automatically enabled for DEBUG builds, not for non-debug builds.
1058 THREAD_DEBUG =
1059 $(NOT_RELEASE_BUILD)THREAD_DEBUG = -DTHREAD_DEBUG
1060 
1061 # Make string literals read-only to save memory.
1062 CFLAGS64 += $(XSTRCONST)
1063 
1064 ALTPICS= $(TRACEOBJS:%=pics/%)
1065 
1066 $(DYNLIB) := BUILD.SO = $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(ALTPICS) $(EXTPICS)
1067 
1068 MAPFILES =      $(LIBCDIR)/port/mapfile-vers
1069 
1070 sparcv9_C_PICFLAGS= -K PIC
1071 CFLAGS64 +=     $(EXTN_CFLAGS)
1072 CPPFLAGS=       -D_REENTRANT -Dsparc $(EXTN_CPPFLAGS) $(THREAD_DEBUG) \
1073                 -I$(LIBCBASE)/inc -I$(LIBCDIR)/inc $(CPPFLAGS.master)
1074 ASFLAGS=        $(EXTN_ASFLAGS) -K PIC -P -D__STDC__ -D_ASM -D__sparcv9 $(CPPFLAGS) \
1075                 $(sparcv9_AS_XARCH)
1076 
1077 # As a favor to the dtrace syscall provider, libc still calls the
1078 # old syscall traps that have been obsoleted by the *at() interfaces.
1079 # Delete this to compile libc using only the new *at() system call traps
1080 CPPFLAGS += -D_RETAIN_OLD_SYSCALLS
1081 
1082 # Inform the run-time linker about libc specialized initialization
1083 RTLDINFO =      -z rtldinfo=tls_rtldinfo
1084 DYNFLAGS +=     $(RTLDINFO)
1085 
1086 # Force libc's internal references to be resolved immediately upon loading
1087 # in order to avoid critical region problems.  Since almost all libc symbols
1088 # are marked 'protected' in the mapfiles, this is a minimal set (15 to 20).
1089 DYNFLAGS +=     -znow
1090 
1091 DYNFLAGS +=     $(EXTN_DYNFLAGS)
1092 
1093 BUILD.s=        $(AS) $(ASFLAGS) $< -o $@
1094 




1050 CERRWARN += -_gcc=-Wno-char-subscripts
1051 CERRWARN += -_gcc=-Wno-clobbered
1052 CERRWARN += -_gcc=-Wno-unused-function
1053 CERRWARN += -_gcc=-Wno-address
1054 
1055 # Setting THREAD_DEBUG = -DTHREAD_DEBUG (make THREAD_DEBUG=-DTHREAD_DEBUG ...)
1056 # enables ASSERT() checking in the threads portion of the library.
1057 # This is automatically enabled for DEBUG builds, not for non-debug builds.
1058 THREAD_DEBUG =
1059 $(NOT_RELEASE_BUILD)THREAD_DEBUG = -DTHREAD_DEBUG
1060 
1061 # Make string literals read-only to save memory.
1062 CFLAGS64 += $(XSTRCONST)
1063 
1064 ALTPICS= $(TRACEOBJS:%=pics/%)
1065 
1066 $(DYNLIB) := BUILD.SO = $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(ALTPICS) $(EXTPICS)
1067 
1068 MAPFILES =      $(LIBCDIR)/port/mapfile-vers
1069 
1070 sparcv9_C_PICFLAGS= $(sparcv9_C_BIGPICFLAGS)
1071 CFLAGS64 +=     $(EXTN_CFLAGS)
1072 CPPFLAGS=       -D_REENTRANT -Dsparc $(EXTN_CPPFLAGS) $(THREAD_DEBUG) \
1073                 -I$(LIBCBASE)/inc -I$(LIBCDIR)/inc $(CPPFLAGS.master)
1074 ASFLAGS=        $(EXTN_ASFLAGS) $(AS_BIGPICFLAGS) -P -D__STDC__ -D_ASM -D__sparcv9 $(CPPFLAGS) \
1075                 $(sparcv9_AS_XARCH)
1076 
1077 # As a favor to the dtrace syscall provider, libc still calls the
1078 # old syscall traps that have been obsoleted by the *at() interfaces.
1079 # Delete this to compile libc using only the new *at() system call traps
1080 CPPFLAGS += -D_RETAIN_OLD_SYSCALLS
1081 
1082 # Inform the run-time linker about libc specialized initialization
1083 RTLDINFO =      -z rtldinfo=tls_rtldinfo
1084 DYNFLAGS +=     $(RTLDINFO)
1085 
1086 # Force libc's internal references to be resolved immediately upon loading
1087 # in order to avoid critical region problems.  Since almost all libc symbols
1088 # are marked 'protected' in the mapfiles, this is a minimal set (15 to 20).
1089 DYNFLAGS +=     -znow
1090 
1091 DYNFLAGS +=     $(EXTN_DYNFLAGS)
1092 
1093 BUILD.s=        $(AS) $(ASFLAGS) $< -o $@
1094