Print this page
8609 want a position independent CRT


 171 #
 172 # These files are particularly rich with references to global things.
 173 # Ordering is by number of got references per file of files that have
 174 # non-performance sensitive code in them.
 175 #
 176 # If you need to add more files and the GOT overflows with "pic" items,
 177 # then use the environment variable LD_OPTIONS=-Dgot,detail to have the
 178 # linker print out the list of GOT hogs..
 179 
 180 GOTHOGS =       dial.o print_obj.o clnt_perror.o nsl_stdio_prv.o netdir.o \
 181                 algs.o netselect.o
 182 BIGPICS =       $(GOTHOGS:%=pics/%)
 183 $(BIGPICS) :=   sparc_C_PICFLAGS = $(C_BIGPICFLAGS)
 184 $(BIGPICS) :=   i386_C_PICFLAGS = $(C_BIGPICFLAGS)
 185 
 186 # Compile C++ code without exceptions to avoid a dependence on libC.
 187 NOEXCEPTIONS= -noex
 188 CCFLAGS += $(NOEXCEPTIONS)
 189 CCFLAGS64 += $(NOEXCEPTIONS)
 190 
 191 CPPFLAGS +=     -I$(SRC)/lib/common/inc -I$(SRC)/lib/libnsl/include -D_REENTRANT
 192 CPPFLAGS +=     -I$(SRC)/lib/libnsl/dial
 193 
 194 CFLAGS +=       $(CCVERBOSE)
 195 
 196 # Make string literals read-only to save memory.
 197 CFLAGS +=       $(XSTRCONST)
 198 CFLAGS64 +=     $(XSTRCONST)
 199 CCFLAGS +=      -_CC=-features=conststrings
 200 CCFLAGS64 +=    -_CC=-features=conststrings
 201 
 202 CERRWARN +=     -_gcc=-Wno-char-subscripts
 203 CERRWARN +=     -_gcc=-Wno-parentheses
 204 CERRWARN +=     -_gcc=-Wno-uninitialized
 205 CERRWARN +=     -_gcc=-Wno-switch
 206 CERRWARN +=     -_gcc=-Wno-char-subscripts
 207 CERRWARN +=     -_gcc=-Wno-empty-body
 208 CERRWARN +=     -_gcc=-Wno-unused-variable
 209 CERRWARN +=     -_gcc=-Wno-clobbered
 210 
 211 LIBMP =         -lmp




 171 #
 172 # These files are particularly rich with references to global things.
 173 # Ordering is by number of got references per file of files that have
 174 # non-performance sensitive code in them.
 175 #
 176 # If you need to add more files and the GOT overflows with "pic" items,
 177 # then use the environment variable LD_OPTIONS=-Dgot,detail to have the
 178 # linker print out the list of GOT hogs..
 179 
 180 GOTHOGS =       dial.o print_obj.o clnt_perror.o nsl_stdio_prv.o netdir.o \
 181                 algs.o netselect.o
 182 BIGPICS =       $(GOTHOGS:%=pics/%)
 183 $(BIGPICS) :=   sparc_C_PICFLAGS = $(C_BIGPICFLAGS)
 184 $(BIGPICS) :=   i386_C_PICFLAGS = $(C_BIGPICFLAGS)
 185 
 186 # Compile C++ code without exceptions to avoid a dependence on libC.
 187 NOEXCEPTIONS= -noex
 188 CCFLAGS += $(NOEXCEPTIONS)
 189 CCFLAGS64 += $(NOEXCEPTIONS)
 190 
 191 CPPFLAGS +=     -I$(SRC)/lib/libnsl/include -D_REENTRANT
 192 CPPFLAGS +=     -I$(SRC)/lib/libnsl/dial
 193 
 194 CFLAGS +=       $(CCVERBOSE)
 195 
 196 # Make string literals read-only to save memory.
 197 CFLAGS +=       $(XSTRCONST)
 198 CFLAGS64 +=     $(XSTRCONST)
 199 CCFLAGS +=      -_CC=-features=conststrings
 200 CCFLAGS64 +=    -_CC=-features=conststrings
 201 
 202 CERRWARN +=     -_gcc=-Wno-char-subscripts
 203 CERRWARN +=     -_gcc=-Wno-parentheses
 204 CERRWARN +=     -_gcc=-Wno-uninitialized
 205 CERRWARN +=     -_gcc=-Wno-switch
 206 CERRWARN +=     -_gcc=-Wno-char-subscripts
 207 CERRWARN +=     -_gcc=-Wno-empty-body
 208 CERRWARN +=     -_gcc=-Wno-unused-variable
 209 CERRWARN +=     -_gcc=-Wno-clobbered
 210 
 211 LIBMP =         -lmp