diff options
Diffstat (limited to 'usr/src/lib/libc/sparc/Makefile.com')
| -rw-r--r-- | usr/src/lib/libc/sparc/Makefile.com | 33 |
1 files changed, 27 insertions, 6 deletions
diff --git a/usr/src/lib/libc/sparc/Makefile.com b/usr/src/lib/libc/sparc/Makefile.com index fd8b30caa4..5d850c7dff 100644 --- a/usr/src/lib/libc/sparc/Makefile.com +++ b/usr/src/lib/libc/sparc/Makefile.com @@ -101,7 +101,9 @@ FPASMOBJS= \ fpgetsticky.o \ fpsetmask.o \ fpsetrnd.o \ - fpsetsticky.o \ + fpsetsticky.o + +$(__GNUC)FPASMOBJS += \ __quad.o ATOMICOBJS= \ @@ -115,7 +117,6 @@ COMOBJS= \ bcopy.o \ bzero.o \ bsearch.o \ - ffs.o \ memccpy.o \ qsort.o \ strtol.o \ @@ -131,6 +132,7 @@ GENOBJS= \ _xregs_clrptr.o \ abs.o \ alloca.o \ + ascii_strcasecmp.o \ byteorder.o \ cuexit.o \ ecvt.o \ @@ -151,7 +153,6 @@ GENOBJS= \ siglongjmp.o \ smt_pause.o \ sparc_data.o \ - strcasecmp.o \ strchr.o \ strcmp.o \ strlcpy.o \ @@ -384,6 +385,7 @@ PORTGEN= \ a64l.o \ abort.o \ addsev.o \ + ascii_strncasecmp.o \ assert.o \ atof.o \ atoi.o \ @@ -427,6 +429,8 @@ PORTGEN= \ fattach.o \ fdetach.o \ fdopendir.o \ + ffs.o \ + fls.o \ fmtmsg.o \ ftime.o \ ftok.o \ @@ -448,6 +452,7 @@ PORTGEN= \ getlogin.o \ getmntent.o \ getnetgrent.o \ + get_nprocs.o \ getopt.o \ getopt_long.o \ getpagesize.o \ @@ -496,6 +501,7 @@ PORTGEN= \ madvise.o \ malloc.o \ memalign.o \ + memmem.o \ mkdev.o \ mkdtemp.o \ mkfifo.o \ @@ -560,15 +566,18 @@ PORTGEN= \ sigsetops.o \ ssignal.o \ stack.o \ + stpcpy.o \ + stpncpy.o \ str2sig.o \ strcase_charmap.o \ strcat.o \ + strchrnul.o \ strcspn.o \ strdup.o \ strerror.o \ - strncat.o \ strlcat.o \ - strncasecmp.o \ + strncat.o \ + strndup.o \ strpbrk.o \ strrchr.o \ strsep.o \ @@ -598,6 +607,7 @@ PORTGEN= \ tfind.o \ time_data.o \ time_gdata.o \ + tls_data.o \ truncate.o \ tsdalloc.o \ tsearch.o \ @@ -686,6 +696,7 @@ PORTSTDIO= \ fwrite.o \ getc.o \ getchar.o \ + getline.o \ getpass.o \ gets.o \ getw.o \ @@ -718,7 +729,11 @@ PORTI18N= \ getwchar.o \ putwchar.o \ putws.o \ + strcasecmp.o \ + strcasestr.o \ + strncasecmp.o \ strtows.o \ + wcsnlen.o \ wcstoimax.o \ wcstol.o \ wcstoul.o \ @@ -1022,8 +1037,10 @@ BUILD.s= $(AS) $(ASFLAGS) $< -o $@ C99MODE= $(C99_ENABLE) # libc method of building an archive +# The "$(GREP) -v ' L '" part is necessary only until +# lorder is fixed to ignore thread-local variables. BUILD.AR= $(RM) $@ ; \ - $(AR) q $@ `$(LORDER) $(MOSTOBJS:%=$(DIR)/%)| $(TSORT)` + $(AR) q $@ `$(LORDER) $(MOSTOBJS:%=$(DIR)/%) | $(GREP) -v ' L ' | $(TSORT)` # extra files for the clean target CLEANFILES= \ @@ -1087,6 +1104,7 @@ TIL= \ atfork.o \ cancel.o \ door_calls.o \ + err.o \ errno.o \ getctxt.o \ lwp.o \ @@ -1120,6 +1138,9 @@ TIL= \ $(TIL:%=pics/%) := CFLAGS += $(LIBCBASE)/threads/sparc.il +# This hack is needed until the sparc gcc is fixed for TLS +pics/tls_data.o := CC = env 'CW_NO_SHADOW=1' $(ONBLD_TOOLS)/bin/$(MACH)/cw -_cc + # special kludge for inlines with 'cas': pics/rwlock.o pics/synch.o pics/lwp.o pics/door_calls.o := \ sparc_CFLAGS += -_gcc=-Wa,-xarch=v8plus |
