Print this page
2964 need POSIX 2008 locale object support
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Gordon Ross <gordon.ross@nexenta.com>
Approved by: TBD
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libc/i386/Makefile.com
+++ new/usr/src/lib/libc/i386/Makefile.com
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
↓ open down ↓ |
14 lines elided |
↑ open up ↑ |
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 22 # Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
23 23 # Copyright (c) 2013, Joyent, Inc. All rights reserved.
24 24 # Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved.
25 +# Copyright 2013 Garrett D'Amore <garrett@damore.org>
25 26 #
26 27 # Copyright 2011 Nexenta Systems, Inc. All rights reserved.
27 28 # Use is subject to license terms.
28 29 #
29 30
30 31 LIBCDIR= $(SRC)/lib/libc
31 32 LIB_PIC= libc_pic.a
32 33 VERS= .1
33 34 CPP= /usr/lib/cpp
34 35 TARGET_ARCH= i386
35 36
36 37 VALUES= values-Xa.o
37 38
38 39 # objects are grouped by source directory
39 40
40 41 # local objects
41 42 STRETS=
42 43
43 44 CRTOBJS= \
44 45 cerror.o \
45 46 cerror64.o
46 47
47 48 DYNOBJS= \
48 49 _rtbootld.o
49 50
50 51 FPOBJS= \
51 52 _D_cplx_div.o \
52 53 _D_cplx_div_ix.o \
53 54 _D_cplx_div_rx.o \
54 55 _D_cplx_lr_div.o \
55 56 _D_cplx_lr_div_ix.o \
56 57 _D_cplx_lr_div_rx.o \
57 58 _D_cplx_mul.o \
58 59 _F_cplx_div.o \
59 60 _F_cplx_div_ix.o \
60 61 _F_cplx_div_rx.o \
61 62 _F_cplx_lr_div.o \
62 63 _F_cplx_lr_div_ix.o \
63 64 _F_cplx_lr_div_rx.o \
64 65 _F_cplx_mul.o \
65 66 _X_cplx_div.o \
66 67 _X_cplx_div_ix.o \
67 68 _X_cplx_div_rx.o \
68 69 _X_cplx_lr_div.o \
69 70 _X_cplx_lr_div_ix.o \
70 71 _X_cplx_lr_div_rx.o \
71 72 _X_cplx_mul.o \
72 73 _base_il.o \
73 74 fpgetmask.o \
74 75 fpgetround.o \
75 76 fpgetsticky.o \
76 77 fpsetmask.o \
77 78 fpsetround.o \
78 79 fpsetsticky.o \
79 80 fpstart.o
80 81
81 82 FPASMOBJS= \
82 83 __xgetRD.o \
83 84 _xtoll.o \
84 85 _xtoull.o \
85 86 fpcw.o
86 87
87 88 ATOMICOBJS= \
88 89 atomic.o
89 90
90 91 XATTROBJS= \
91 92 xattr_common.o
92 93
93 94 COMOBJS= \
94 95 bcmp.o \
95 96 bcopy.o \
96 97 bsearch.o \
97 98 bzero.o \
98 99 qsort.o \
99 100 strtol.o \
100 101 strtoul.o \
101 102 strtoll.o \
102 103 strtoull.o
103 104
104 105 DTRACEOBJS= \
105 106 dtrace_data.o
106 107
107 108 GENOBJS= \
108 109 _div64.o \
109 110 _divdi3.o \
110 111 _getsp.o \
111 112 _mul64.o \
112 113 abs.o \
113 114 alloca.o \
114 115 byteorder.o \
115 116 byteorder64.o \
116 117 cuexit.o \
117 118 ecvt.o \
118 119 errlst.o \
119 120 i386_data.o \
120 121 ladd.o \
121 122 ldivide.o \
122 123 lmul.o \
123 124 lock.o \
124 125 lshiftl.o \
125 126 lsign.o \
126 127 lsub.o \
127 128 makectxt.o \
128 129 memccpy.o \
129 130 memchr.o \
130 131 memcmp.o \
131 132 memcpy.o \
132 133 memset.o \
133 134 new_list.o \
134 135 setjmp.o \
135 136 siginfolst.o \
136 137 siglongjmp.o \
137 138 strcat.o \
138 139 strchr.o \
139 140 strcmp.o \
140 141 strcpy.o \
141 142 strlen.o \
142 143 strncat.o \
143 144 strncmp.o \
144 145 strncpy.o \
145 146 strnlen.o \
146 147 strrchr.o \
147 148 sync_instruction_memory.o
148 149
149 150 # sysobjs that contain large-file interfaces
150 151 COMSYSOBJS64= \
151 152 fstatvfs64.o \
152 153 getdents64.o \
153 154 getrlimit64.o \
154 155 lseek64.o \
155 156 mmap64.o \
156 157 pread64.o \
157 158 pwrite64.o \
158 159 setrlimit64.o \
159 160 statvfs64.o
160 161
161 162 SYSOBJS64=
162 163
163 164 COMSYSOBJS= \
164 165 __clock_timer.o \
165 166 __getloadavg.o \
166 167 __rusagesys.o \
167 168 __signotify.o \
168 169 __sigrt.o \
169 170 __time.o \
170 171 _lgrp_home_fast.o \
171 172 _lgrpsys.o \
172 173 _nfssys.o \
173 174 _portfs.o \
174 175 _pset.o \
175 176 _rpcsys.o \
176 177 _sigaction.o \
177 178 _so_accept.o \
178 179 _so_bind.o \
179 180 _so_connect.o \
180 181 _so_getpeername.o \
181 182 _so_getsockname.o \
182 183 _so_getsockopt.o \
183 184 _so_listen.o \
184 185 _so_recv.o \
185 186 _so_recvfrom.o \
186 187 _so_recvmsg.o \
187 188 _so_send.o \
188 189 _so_sendmsg.o \
189 190 _so_sendto.o \
190 191 _so_setsockopt.o \
191 192 _so_shutdown.o \
192 193 _so_socket.o \
193 194 _so_socketpair.o \
194 195 _sockconfig.o \
195 196 acct.o \
196 197 acl.o \
197 198 adjtime.o \
198 199 alarm.o \
199 200 brk.o \
200 201 chdir.o \
201 202 chroot.o \
202 203 cladm.o \
203 204 close.o \
204 205 execve.o \
205 206 exit.o \
206 207 facl.o \
207 208 fchdir.o \
208 209 fchroot.o \
209 210 fdsync.o \
210 211 fpathconf.o \
211 212 fstatfs.o \
212 213 fstatvfs.o \
213 214 getcpuid.o \
214 215 getdents.o \
215 216 getegid.o \
216 217 geteuid.o \
217 218 getgid.o \
218 219 getgroups.o \
219 220 gethrtime.o \
220 221 getitimer.o \
221 222 getmsg.o \
222 223 getpid.o \
223 224 getpmsg.o \
224 225 getppid.o \
225 226 getrlimit.o \
226 227 getuid.o \
227 228 gtty.o \
228 229 install_utrap.o \
229 230 ioctl.o \
230 231 kaio.o \
231 232 kill.o \
232 233 llseek.o \
233 234 lseek.o \
234 235 mmapobjsys.o \
235 236 memcntl.o \
236 237 mincore.o \
237 238 mmap.o \
238 239 modctl.o \
239 240 mount.o \
240 241 mprotect.o \
241 242 munmap.o \
242 243 nice.o \
243 244 ntp_adjtime.o \
244 245 ntp_gettime.o \
245 246 p_online.o \
246 247 pathconf.o \
247 248 pause.o \
248 249 pcsample.o \
249 250 pipe2.o \
250 251 pollsys.o \
251 252 pread.o \
252 253 priocntlset.o \
253 254 processor_bind.o \
254 255 processor_info.o \
255 256 profil.o \
256 257 putmsg.o \
257 258 putpmsg.o \
258 259 pwrite.o \
259 260 read.o \
260 261 readv.o \
261 262 resolvepath.o \
262 263 seteguid.o \
263 264 setgid.o \
264 265 setgroups.o \
265 266 setitimer.o \
266 267 setreid.o \
267 268 setrlimit.o \
268 269 setuid.o \
269 270 sigaltstk.o \
270 271 sigprocmsk.o \
271 272 sigsendset.o \
272 273 sigsuspend.o \
273 274 statfs.o \
274 275 statvfs.o \
275 276 stty.o \
276 277 sync.o \
277 278 sysconfig.o \
278 279 sysfs.o \
279 280 sysinfo.o \
280 281 syslwp.o \
281 282 times.o \
282 283 ulimit.o \
283 284 umask.o \
284 285 umount2.o \
285 286 utssys.o \
286 287 uucopy.o \
287 288 vhangup.o \
288 289 waitid.o \
289 290 write.o \
290 291 writev.o \
291 292 yield.o
292 293
293 294 SYSOBJS= \
294 295 __clock_gettime.o \
295 296 __getcontext.o \
296 297 __uadmin.o \
297 298 _lwp_mutex_unlock.o \
298 299 _stack_grow.o \
299 300 door.o \
300 301 forkx.o \
301 302 forkallx.o \
302 303 getcontext.o \
303 304 gettimeofday.o \
304 305 lwp_private.o \
305 306 nuname.o \
306 307 ptrace.o \
307 308 syscall.o \
308 309 sysi86.o \
309 310 tls_get_addr.o \
310 311 uadmin.o \
311 312 umount.o \
312 313 uname.o \
313 314 vforkx.o \
314 315 xstat.o
315 316
316 317 # objects under $(LIBCDIR)/port which contain transitional large file interfaces
317 318 PORTGEN64= \
318 319 _xftw64.o \
319 320 attropen64.o \
320 321 ftw64.o \
321 322 mkstemp64.o \
322 323 nftw64.o \
323 324 tell64.o \
324 325 truncate64.o
325 326
326 327 # objects from source under $(LIBCDIR)/port
327 328 PORTFP= \
328 329 __flt_decim.o \
329 330 __flt_rounds.o \
330 331 __tbl_10_b.o \
331 332 __tbl_10_h.o \
332 333 __tbl_10_s.o \
333 334 __tbl_2_b.o \
334 335 __tbl_2_h.o \
335 336 __tbl_2_s.o \
336 337 __tbl_fdq.o \
337 338 __tbl_tens.o \
338 339 __x_power.o \
339 340 _base_sup.o \
340 341 aconvert.o \
341 342 decimal_bin.o \
342 343 double_decim.o \
343 344 econvert.o \
344 345 fconvert.o \
345 346 file_decim.o \
346 347 finite.o \
347 348 fp_data.o \
348 349 func_decim.o \
349 350 gconvert.o \
350 351 hex_bin.o \
351 352 ieee_globals.o \
352 353 pack_float.o \
353 354 sigfpe.o \
354 355 string_decim.o
355 356
356 357 PORTGEN= \
357 358 _env_data.o \
358 359 _xftw.o \
359 360 a64l.o \
360 361 abort.o \
361 362 addsev.o \
362 363 ascii_strcasecmp.o \
363 364 ascii_strncasecmp.o \
364 365 assert.o \
365 366 atof.o \
366 367 atoi.o \
367 368 atol.o \
368 369 atoll.o \
369 370 attrat.o \
370 371 attropen.o \
371 372 atexit.o \
372 373 atfork.o \
373 374 basename.o \
374 375 calloc.o \
375 376 catgets.o \
376 377 catopen.o \
377 378 cfgetispeed.o \
378 379 cfgetospeed.o \
379 380 cfree.o \
380 381 cfsetispeed.o \
381 382 cfsetospeed.o \
382 383 cftime.o \
383 384 clock.o \
384 385 closedir.o \
385 386 closefrom.o \
386 387 confstr.o \
387 388 crypt.o \
388 389 csetlen.o \
389 390 ctime.o \
390 391 ctime_r.o \
391 392 daemon.o \
392 393 deflt.o \
393 394 directio.o \
394 395 dirname.o \
395 396 div.o \
396 397 drand48.o \
397 398 dup.o \
398 399 env_data.o \
399 400 err.o \
400 401 errno.o \
401 402 euclen.o \
402 403 event_port.o \
403 404 execvp.o \
404 405 fattach.o \
405 406 fdetach.o \
406 407 fdopendir.o \
407 408 ffs.o \
408 409 fls.o \
409 410 fmtmsg.o \
410 411 ftime.o \
411 412 ftok.o \
412 413 ftw.o \
413 414 gcvt.o \
414 415 getauxv.o \
415 416 getcwd.o \
416 417 getdate_err.o \
417 418 getdtblsize.o \
418 419 getenv.o \
419 420 getexecname.o \
420 421 getgrnam.o \
421 422 getgrnam_r.o \
422 423 gethostid.o \
423 424 gethostname.o \
424 425 gethz.o \
425 426 getisax.o \
426 427 getloadavg.o \
427 428 getlogin.o \
428 429 getmntent.o \
429 430 getnetgrent.o \
430 431 get_nprocs.o \
431 432 getopt.o \
432 433 getopt_long.o \
433 434 getpagesize.o \
434 435 getpw.o \
435 436 getpwnam.o \
436 437 getpwnam_r.o \
437 438 getrusage.o \
438 439 getspent.o \
439 440 getspent_r.o \
440 441 getsubopt.o \
441 442 gettxt.o \
442 443 getusershell.o \
443 444 getut.o \
444 445 getutx.o \
445 446 getvfsent.o \
446 447 getwd.o \
447 448 getwidth.o \
448 449 getxby_door.o \
449 450 gtxt.o \
450 451 hsearch.o \
451 452 iconv.o \
452 453 imaxabs.o \
453 454 imaxdiv.o \
454 455 index.o \
455 456 initgroups.o \
456 457 insque.o \
457 458 isaexec.o \
458 459 isastream.o \
459 460 isatty.o \
460 461 killpg.o \
461 462 klpdlib.o \
462 463 l64a.o \
463 464 lckpwdf.o \
464 465 lconstants.o \
465 466 lexp10.o \
466 467 lfind.o \
467 468 lfmt.o \
468 469 lfmt_log.o \
469 470 llabs.o \
470 471 lldiv.o \
471 472 llog10.o \
472 473 lltostr.o \
473 474 localtime.o \
474 475 lsearch.o \
475 476 madvise.o \
476 477 malloc.o \
477 478 memalign.o \
478 479 memmem.o \
479 480 mkdev.o \
480 481 mkdtemp.o \
481 482 mkfifo.o \
482 483 mkstemp.o \
483 484 mktemp.o \
484 485 mlock.o \
485 486 mlockall.o \
486 487 mon.o \
487 488 msync.o \
488 489 munlock.o \
489 490 munlockall.o \
490 491 ndbm.o \
491 492 nftw.o \
492 493 nlspath_checks.o \
493 494 nsparse.o \
494 495 nss_common.o \
495 496 nss_dbdefs.o \
496 497 nss_deffinder.o \
497 498 opendir.o \
498 499 opt_data.o \
499 500 perror.o \
500 501 pfmt.o \
501 502 pfmt_data.o \
502 503 pfmt_print.o \
503 504 pipe.o \
504 505 plock.o \
505 506 poll.o \
506 507 posix_fadvise.o \
507 508 posix_fallocate.o \
508 509 posix_madvise.o \
509 510 posix_memalign.o \
510 511 priocntl.o \
511 512 privlib.o \
512 513 priv_str_xlate.o \
513 514 psiginfo.o \
514 515 psignal.o \
515 516 pt.o \
516 517 putpwent.o \
517 518 putspent.o \
518 519 raise.o \
519 520 rand.o \
520 521 random.o \
521 522 rctlops.o \
522 523 readdir.o \
523 524 readdir_r.o \
524 525 realpath.o \
525 526 reboot.o \
526 527 regexpr.o \
527 528 remove.o \
528 529 rewinddir.o \
529 530 rindex.o \
530 531 scandir.o \
531 532 seekdir.o \
532 533 select.o \
533 534 select_large_fdset.o \
534 535 setlabel.o \
535 536 setpriority.o \
536 537 settimeofday.o \
537 538 sh_locks.o \
538 539 sigflag.o \
539 540 siglist.o \
540 541 sigsend.o \
541 542 sigsetops.o \
542 543 ssignal.o \
543 544 stack.o \
544 545 stpcpy.o \
545 546 stpncpy.o \
546 547 str2sig.o \
547 548 strcase_charmap.o \
548 549 strchrnul.o \
549 550 strcspn.o \
550 551 strdup.o \
551 552 strerror.o \
552 553 strlcat.o \
553 554 strlcpy.o \
554 555 strndup.o \
555 556 strpbrk.o \
556 557 strsep.o \
557 558 strsignal.o \
558 559 strspn.o \
559 560 strstr.o \
560 561 strtod.o \
561 562 strtoimax.o \
562 563 strtok.o \
563 564 strtok_r.o \
564 565 strtoumax.o \
565 566 swab.o \
566 567 swapctl.o \
567 568 sysconf.o \
568 569 syslog.o \
569 570 tcdrain.o \
570 571 tcflow.o \
571 572 tcflush.o \
572 573 tcgetattr.o \
573 574 tcgetpgrp.o \
574 575 tcgetsid.o \
575 576 tcsendbreak.o \
576 577 tcsetattr.o \
577 578 tcsetpgrp.o \
578 579 tell.o \
579 580 telldir.o \
580 581 tfind.o \
581 582 time_data.o \
582 583 time_gdata.o \
583 584 tls_data.o \
584 585 truncate.o \
585 586 tsdalloc.o \
586 587 tsearch.o \
587 588 ttyname.o \
588 589 ttyslot.o \
589 590 ualarm.o \
590 591 ucred.o \
591 592 valloc.o \
592 593 vlfmt.o \
593 594 vpfmt.o \
594 595 waitpid.o \
595 596 walkstack.o \
596 597 wdata.o \
597 598 xgetwidth.o \
598 599 xpg4.o \
599 600 xpg6.o
600 601
601 602 PORTPRINT_W= \
602 603 doprnt_w.o
603 604
604 605 PORTPRINT= \
605 606 asprintf.o \
606 607 doprnt.o \
607 608 fprintf.o \
608 609 printf.o \
609 610 snprintf.o \
610 611 sprintf.o \
611 612 vfprintf.o \
612 613 vprintf.o \
613 614 vsnprintf.o \
614 615 vsprintf.o \
615 616 vwprintf.o \
616 617 wprintf.o
617 618
618 619 # c89 variants to support 32-bit size of c89 u/intmax_t (32-bit libc only)
619 620 PORTPRINT_C89= \
620 621 vfprintf_c89.o \
621 622 vprintf_c89.o \
622 623 vsnprintf_c89.o \
623 624 vsprintf_c89.o \
624 625 vwprintf_c89.o
625 626
626 627 PORTSTDIO_C89= \
627 628 vscanf_c89.o \
628 629 vwscanf_c89.o \
629 630
630 631 # portable stdio objects that contain large file interfaces.
631 632 # Note: fopen64 is a special case, as we build it small.
632 633 PORTSTDIO64= \
633 634 fopen64.o \
634 635 fpos64.o
635 636
636 637 PORTSTDIO_W= \
637 638 doscan_w.o
638 639
639 640 PORTSTDIO= \
640 641 __extensions.o \
641 642 _endopen.o \
642 643 _filbuf.o \
643 644 _findbuf.o \
644 645 _flsbuf.o \
645 646 _wrtchk.o \
646 647 clearerr.o \
647 648 ctermid.o \
648 649 ctermid_r.o \
649 650 cuserid.o \
650 651 data.o \
651 652 doscan.o \
652 653 fdopen.o \
653 654 feof.o \
654 655 ferror.o \
655 656 fgetc.o \
656 657 fgets.o \
657 658 fileno.o \
658 659 flockf.o \
659 660 flush.o \
660 661 fopen.o \
661 662 fpos.o \
662 663 fputc.o \
663 664 fputs.o \
664 665 fread.o \
665 666 fseek.o \
666 667 fseeko.o \
667 668 ftell.o \
668 669 ftello.o \
669 670 fwrite.o \
670 671 getc.o \
671 672 getchar.o \
672 673 getline.o \
673 674 getpass.o \
674 675 gets.o \
675 676 getw.o \
676 677 mse.o \
677 678 popen.o \
678 679 putc.o \
679 680 putchar.o \
680 681 puts.o \
681 682 putw.o \
682 683 rewind.o \
683 684 scanf.o \
684 685 setbuf.o \
685 686 setbuffer.o \
686 687 setvbuf.o \
687 688 system.o \
688 689 tempnam.o \
689 690 tmpfile.o \
↓ open down ↓ |
655 lines elided |
↑ open up ↑ |
690 691 tmpnam_r.o \
691 692 ungetc.o \
692 693 vscanf.o \
693 694 vwscanf.o \
694 695 wscanf.o
695 696
696 697 PORTI18N= \
697 698 getwchar.o \
698 699 putwchar.o \
699 700 putws.o \
700 - strcasecmp.o \
701 - strcasestr.o \
702 - strncasecmp.o \
703 701 strtows.o \
704 702 wcsnlen.o \
705 703 wcsstr.o \
706 704 wcstoimax.o \
707 705 wcstol.o \
708 706 wcstoul.o \
709 707 wcswcs.o \
710 708 wmemchr.o \
711 709 wmemcmp.o \
712 710 wmemcpy.o \
713 711 wmemmove.o \
714 712 wmemset.o \
715 - wscasecmp.o \
716 713 wscat.o \
717 714 wschr.o \
718 715 wscmp.o \
719 716 wscpy.o \
720 717 wscspn.o \
721 718 wsdup.o \
722 719 wslen.o \
723 - wsncasecmp.o \
724 720 wsncat.o \
725 721 wsncmp.o \
726 722 wsncpy.o \
727 723 wspbrk.o \
728 724 wsprintf.o \
729 725 wsrchr.o \
730 726 wsscanf.o \
731 727 wsspn.o \
732 728 wstod.o \
733 729 wstok.o \
734 730 wstol.o \
735 731 wstoll.o \
736 732 wsxfrm.o \
737 733 gettext.o \
738 734 gettext_gnu.o \
739 735 gettext_real.o \
740 736 gettext_util.o \
741 - isdigit.o \
742 737 plural_parser.o \
743 738 wdresolve.o \
744 739 _ctype.o \
745 740 isascii.o \
746 741 toascii.o
747 742
748 743 PORTI18N_COND= \
749 744 wcstol_longlong.o \
750 745 wcstoul_longlong.o
751 746
752 747 PORTLOCALE= \
753 748 big5.o \
754 749 btowc.o \
755 750 collate.o \
756 751 collcmp.o \
757 752 euc.o \
758 753 fnmatch.o \
↓ open down ↓ |
7 lines elided |
↑ open up ↑ |
759 754 fgetwc.o \
760 755 fgetws.o \
761 756 fix_grouping.o \
762 757 fputwc.o \
763 758 fputws.o \
764 759 fwide.o \
765 760 gb18030.o \
766 761 gb2312.o \
767 762 gbk.o \
768 763 getdate.o \
764 + isdigit.o \
769 765 iswctype.o \
770 766 ldpart.o \
771 767 lmessages.o \
772 768 lnumeric.o \
773 769 lmonetary.o \
774 770 localeconv.o \
771 + localeimpl.o \
775 772 mbftowc.o \
776 773 mblen.o \
777 774 mbrlen.o \
778 775 mbrtowc.o \
779 776 mbsinit.o \
780 777 mbsnrtowcs.o \
781 778 mbsrtowcs.o \
782 779 mbstowcs.o \
783 780 mbtowc.o \
784 781 mskanji.o \
785 782 nextwctype.o \
↓ open down ↓ |
1 lines elided |
↑ open up ↑ |
786 783 nl_langinfo.o \
787 784 none.o \
788 785 regcomp.o \
789 786 regfree.o \
790 787 regerror.o \
791 788 regexec.o \
792 789 rune.o \
793 790 runetype.o \
794 791 setlocale.o \
795 792 setrunelocale.o \
793 + strcasecmp.o \
794 + strcasestr.o \
796 795 strcoll.o \
797 796 strfmon.o \
798 797 strftime.o \
798 + strncasecmp.o \
799 799 strptime.o \
800 800 strxfrm.o \
801 801 table.o \
802 802 timelocal.o \
803 803 tolower.o \
804 804 towlower.o \
805 805 ungetwc.o \
806 806 utf8.o \
807 807 wcrtomb.o \
808 + wcscasecmp.o \
808 809 wcscoll.o \
809 810 wcsftime.o \
810 811 wcsnrtombs.o \
811 812 wcsrtombs.o \
812 813 wcswidth.o \
813 814 wcstombs.o \
814 815 wcsxfrm.o \
815 816 wctob.o \
816 817 wctomb.o \
817 818 wctrans.o \
818 819 wctype.o \
819 820 wcwidth.o \
820 821 wscol.o
821 822
822 823 AIOOBJS= \
823 824 aio.o \
824 825 aio_alloc.o \
825 826 posix_aio.o
826 827
827 828 RTOBJS= \
828 829 clock_timer.o \
829 830 mqueue.o \
830 831 pos4obj.o \
831 832 sched.o \
832 833 sem.o \
833 834 shm.o \
834 835 sigev_thread.o
835 836
836 837 TPOOLOBJS= \
837 838 thread_pool.o
838 839
839 840 THREADSOBJS= \
840 841 alloc.o \
841 842 assfail.o \
842 843 cancel.o \
843 844 door_calls.o \
844 845 tmem.o \
845 846 pthr_attr.o \
846 847 pthr_barrier.o \
847 848 pthr_cond.o \
848 849 pthr_mutex.o \
849 850 pthr_rwlock.o \
850 851 pthread.o \
851 852 rwlock.o \
852 853 scalls.o \
853 854 sema.o \
854 855 sigaction.o \
855 856 spawn.o \
856 857 synch.o \
857 858 tdb_agent.o \
858 859 thr.o \
859 860 thread_interface.o \
860 861 tls.o \
861 862 tsd.o
862 863
863 864 THREADSMACHOBJS= \
864 865 machdep.o
865 866
866 867 THREADSASMOBJS= \
867 868 asm_subr.o
868 869
869 870 UNICODEOBJS= \
870 871 u8_textprep.o \
871 872 uconv.o
872 873
873 874 UNWINDMACHOBJS= \
874 875 unwind.o
875 876
876 877 UNWINDASMOBJS= \
877 878 unwind_frame.o
878 879
879 880 # objects that implement the transitional large file API
880 881 PORTSYS64= \
881 882 lockf64.o \
882 883 stat64.o
883 884
884 885 PORTSYS= \
885 886 _autofssys.o \
886 887 access.o \
887 888 acctctl.o \
888 889 bsd_signal.o \
889 890 chmod.o \
890 891 chown.o \
891 892 corectl.o \
892 893 exacctsys.o \
893 894 execl.o \
894 895 execle.o \
895 896 execv.o \
896 897 fcntl.o \
897 898 getpagesizes.o \
898 899 getpeerucred.o \
899 900 inst_sync.o \
900 901 issetugid.o \
901 902 label.o \
902 903 link.o \
903 904 lockf.o \
904 905 lwp.o \
905 906 lwp_cond.o \
906 907 lwp_rwlock.o \
907 908 lwp_sigmask.o \
908 909 meminfosys.o \
909 910 mkdir.o \
910 911 mknod.o \
911 912 msgsys.o \
912 913 nfssys.o \
913 914 open.o \
914 915 pgrpsys.o \
915 916 posix_sigwait.o \
916 917 ppriv.o \
917 918 psetsys.o \
918 919 rctlsys.o \
919 920 readlink.o \
920 921 rename.o \
921 922 sbrk.o \
922 923 semsys.o \
923 924 set_errno.o \
924 925 sharefs.o \
925 926 shmsys.o \
926 927 sidsys.o \
927 928 siginterrupt.o \
928 929 signal.o \
929 930 sigpending.o \
930 931 sigstack.o \
931 932 stat.o \
932 933 symlink.o \
933 934 tasksys.o \
934 935 time.o \
935 936 time_util.o \
936 937 ucontext.o \
937 938 unlink.o \
938 939 ustat.o \
939 940 utimesys.o \
940 941 zone.o
941 942
942 943 PORTREGEX= \
943 944 glob.o \
944 945 regcmp.o \
945 946 regex.o \
946 947 wordexp.o
947 948
948 949 MOSTOBJS= \
949 950 $(STRETS) \
950 951 $(CRTOBJS) \
951 952 $(DYNOBJS) \
952 953 $(FPOBJS) \
953 954 $(FPASMOBJS) \
954 955 $(ATOMICOBJS) \
955 956 $(XATTROBJS) \
956 957 $(COMOBJS) \
957 958 $(DTRACEOBJS) \
958 959 $(GENOBJS) \
959 960 $(PORTFP) \
960 961 $(PORTGEN) \
961 962 $(PORTGEN64) \
962 963 $(PORTI18N) \
963 964 $(PORTI18N_COND) \
964 965 $(PORTLOCALE) \
965 966 $(PORTPRINT) \
966 967 $(PORTPRINT_C89) \
967 968 $(PORTPRINT_W) \
968 969 $(PORTREGEX) \
969 970 $(PORTSTDIO) \
970 971 $(PORTSTDIO64) \
971 972 $(PORTSTDIO_C89) \
972 973 $(PORTSTDIO_W) \
973 974 $(PORTSYS) \
974 975 $(PORTSYS64) \
975 976 $(AIOOBJS) \
976 977 $(RTOBJS) \
977 978 $(TPOOLOBJS) \
978 979 $(THREADSOBJS) \
979 980 $(THREADSMACHOBJS) \
980 981 $(THREADSASMOBJS) \
981 982 $(UNICODEOBJS) \
982 983 $(UNWINDMACHOBJS) \
983 984 $(UNWINDASMOBJS) \
984 985 $(COMSYSOBJS) \
985 986 $(SYSOBJS) \
986 987 $(COMSYSOBJS64) \
987 988 $(SYSOBJS64) \
988 989 $(VALUES)
989 990
990 991 TRACEOBJS= \
991 992 plockstat.o
992 993
993 994 # NOTE: libc.so.1 must be linked with the minimal crti.o and crtn.o
994 995 # modules whose source is provided in the $(SRC)/lib/common directory.
995 996 # This must be done because otherwise the Sun C compiler would insert
996 997 # its own versions of these modules and those versions contain code
997 998 # to call out to C++ initialization functions. Such C++ initialization
998 999 # functions can call back into libc before thread initialization is
999 1000 # complete and this leads to segmentation violations and other problems.
1000 1001 # Since libc contains no C++ code, linking with the minimal crti.o and
1001 1002 # crtn.o modules is safe and avoids the problems described above.
1002 1003 OBJECTS= $(CRTI) $(MOSTOBJS) $(CRTN)
1003 1004 CRTSRCS= ../../common/i386
1004 1005
1005 1006 LDPASS_OFF= $(POUND_SIGN)
1006 1007
1007 1008 # include common library definitions
1008 1009 include ../../Makefile.lib
1009 1010
1010 1011 # we need to override the default SONAME here because we might
1011 1012 # be building a variant object (still libc.so.1, but different filename)
1012 1013 SONAME = libc.so.1
1013 1014
1014 1015 CFLAGS += $(CCVERBOSE) $(CTF_FLAGS)
1015 1016
1016 1017 # This is necessary to avoid problems with calling _ex_unwind().
1017 1018 # We probably don't want any inlining anyway.
1018 1019 XINLINE = -xinline=
1019 1020 CFLAGS += $(XINLINE)
1020 1021
1021 1022 CERRWARN += -_gcc=-Wno-parentheses
1022 1023 CERRWARN += -_gcc=-Wno-switch
1023 1024 CERRWARN += -_gcc=-Wno-uninitialized
1024 1025 CERRWARN += -_gcc=-Wno-unused-value
1025 1026 CERRWARN += -_gcc=-Wno-unused-label
1026 1027 CERRWARN += -_gcc=-Wno-unused-variable
1027 1028 CERRWARN += -_gcc=-Wno-type-limits
1028 1029 CERRWARN += -_gcc=-Wno-char-subscripts
1029 1030 CERRWARN += -_gcc=-Wno-clobbered
1030 1031 CERRWARN += -_gcc=-Wno-unused-function
1031 1032 CERRWARN += -_gcc=-Wno-address
1032 1033
1033 1034 # Setting THREAD_DEBUG = -DTHREAD_DEBUG (make THREAD_DEBUG=-DTHREAD_DEBUG ...)
1034 1035 # enables ASSERT() checking in the threads portion of the library.
1035 1036 # This is automatically enabled for DEBUG builds, not for non-debug builds.
1036 1037 THREAD_DEBUG =
1037 1038 $(NOT_RELEASE_BUILD)THREAD_DEBUG = -DTHREAD_DEBUG
1038 1039
1039 1040 # Make string literals read-only to save memory.
1040 1041 CFLAGS += $(XSTRCONST)
1041 1042
1042 1043 ALTPICS= $(TRACEOBJS:%=pics/%)
1043 1044
1044 1045 $(DYNLIB) := BUILD.SO = $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(ALTPICS) \
1045 1046 $(EXTPICS) $(LDLIBS)
1046 1047
1047 1048 MAPFILES = $(LIBCDIR)/port/mapfile-vers
1048 1049
1049 1050 #
1050 1051 # EXTN_CPPFLAGS and EXTN_CFLAGS set in enclosing Makefile
1051 1052 #
1052 1053 CFLAGS += $(EXTN_CFLAGS)
1053 1054 CPPFLAGS= -D_REENTRANT -Di386 $(EXTN_CPPFLAGS) $(THREAD_DEBUG) \
1054 1055 -I$(LIBCBASE)/inc -I$(LIBCDIR)/inc $(CPPFLAGS.master)
1055 1056 ASFLAGS= $(AS_PICFLAGS) -P -D__STDC__ -D_ASM $(CPPFLAGS) $(i386_AS_XARCH)
1056 1057
1057 1058 # As a favor to the dtrace syscall provider, libc still calls the
1058 1059 # old syscall traps that have been obsoleted by the *at() interfaces.
1059 1060 # Delete this to compile libc using only the new *at() system call traps
1060 1061 CPPFLAGS += -D_RETAIN_OLD_SYSCALLS
1061 1062
1062 1063 # Inform the run-time linker about libc specialized initialization
1063 1064 RTLDINFO = -z rtldinfo=tls_rtldinfo
1064 1065 DYNFLAGS += $(RTLDINFO)
1065 1066
1066 1067 # Force libc's internal references to be resolved immediately upon loading
1067 1068 # in order to avoid critical region problems. Since almost all libc symbols
1068 1069 # are marked 'protected' in the mapfiles, this is a minimal set (15 to 20).
1069 1070 DYNFLAGS += -znow
1070 1071
1071 1072 DYNFLAGS += -e __rtboot
1072 1073 DYNFLAGS += $(EXTN_DYNFLAGS)
1073 1074
1074 1075 # Inform the kernel about the initial DTrace area (in case
1075 1076 # libc is being used as the interpreter / runtime linker).
1076 1077 DTRACE_DATA = -zdtrace=dtrace_data
1077 1078 DYNFLAGS += $(DTRACE_DATA)
1078 1079
1079 1080 # DTrace needs an executable data segment.
1080 1081 MAPFILE.NED=
1081 1082
1082 1083 BUILD.s= $(AS) $(ASFLAGS) $< -o $@
1083 1084
1084 1085 # Override this top level flag so the compiler builds in its native
1085 1086 # C99 mode. This has been enabled to support the complex arithmetic
1086 1087 # added to libc.
1087 1088 C99MODE= $(C99_ENABLE)
1088 1089
1089 1090 # libc method of building an archive
1090 1091 # The "$(GREP) -v ' L '" part is necessary only until
1091 1092 # lorder is fixed to ignore thread-local variables.
1092 1093 BUILD.AR= $(RM) $@ ; \
1093 1094 $(AR) q $@ `$(LORDER) $(MOSTOBJS:%=$(DIR)/%) | $(GREP) -v ' L ' | $(TSORT)`
1094 1095
1095 1096 # extra files for the clean target
1096 1097 CLEANFILES= \
1097 1098 $(LIBCDIR)/port/gen/errlst.c \
1098 1099 $(LIBCDIR)/port/gen/new_list.c \
1099 1100 assym.h \
1100 1101 genassym \
1101 1102 crt/_rtld.s \
1102 1103 crt/_rtbootld.s \
1103 1104 pics/_rtbootld.o \
1104 1105 pics/crti.o \
1105 1106 pics/crtn.o \
1106 1107 $(ALTPICS)
1107 1108
1108 1109 CLOBBERFILES += $(LIB_PIC)
1109 1110
1110 1111 # list of C source for lint
1111 1112 SRCS= \
1112 1113 $(ATOMICOBJS:%.o=$(SRC)/common/atomic/%.c) \
1113 1114 $(XATTROBJS:%.o=$(SRC)/common/xattr/%.c) \
1114 1115 $(COMOBJS:%.o=$(SRC)/common/util/%.c) \
1115 1116 $(DTRACEOBJS:%.o=$(SRC)/common/dtrace/%.c) \
1116 1117 $(PORTFP:%.o=$(LIBCDIR)/port/fp/%.c) \
1117 1118 $(PORTGEN:%.o=$(LIBCDIR)/port/gen/%.c) \
1118 1119 $(PORTI18N:%.o=$(LIBCDIR)/port/i18n/%.c) \
1119 1120 $(PORTLOCALE:%.o=$(LIBCDIR)/port/locale/%.c) \
1120 1121 $(PORTPRINT:%.o=$(LIBCDIR)/port/print/%.c) \
1121 1122 $(PORTREGEX:%.o=$(LIBCDIR)/port/regex/%.c) \
1122 1123 $(PORTSTDIO:%.o=$(LIBCDIR)/port/stdio/%.c) \
1123 1124 $(PORTSYS:%.o=$(LIBCDIR)/port/sys/%.c) \
1124 1125 $(AIOOBJS:%.o=$(LIBCDIR)/port/aio/%.c) \
1125 1126 $(RTOBJS:%.o=$(LIBCDIR)/port/rt/%.c) \
1126 1127 $(TPOOLOBJS:%.o=$(LIBCDIR)/port/tpool/%.c) \
1127 1128 $(THREADSOBJS:%.o=$(LIBCDIR)/port/threads/%.c) \
1128 1129 $(THREADSMACHOBJS:%.o=$(LIBCDIR)/$(MACH)/threads/%.c) \
1129 1130 $(UNICODEOBJS:%.o=$(SRC)/common/unicode/%.c) \
1130 1131 $(UNWINDMACHOBJS:%.o=$(LIBCDIR)/port/unwind/%.c) \
1131 1132 $(FPOBJS:%.o=$(LIBCDIR)/$(MACH)/fp/%.c) \
1132 1133 $(LIBCBASE)/gen/ecvt.c \
1133 1134 $(LIBCBASE)/gen/makectxt.c \
1134 1135 $(LIBCBASE)/gen/siginfolst.c \
1135 1136 $(LIBCBASE)/gen/siglongjmp.c \
1136 1137 $(LIBCBASE)/gen/strcmp.c \
1137 1138 $(LIBCBASE)/gen/sync_instruction_memory.c \
1138 1139 $(LIBCBASE)/sys/ptrace.c \
1139 1140 $(LIBCBASE)/sys/uadmin.c
1140 1141
1141 1142 # conditional assignments
1142 1143 $(DYNLIB) := CRTI = crti.o
1143 1144 $(DYNLIB) := CRTN = crtn.o
1144 1145
1145 1146 # Files which need the threads .il inline template
1146 1147 TIL= \
1147 1148 aio.o \
1148 1149 alloc.o \
1149 1150 assfail.o \
1150 1151 atexit.o \
1151 1152 atfork.o \
1152 1153 cancel.o \
1153 1154 door_calls.o \
1154 1155 err.o \
1155 1156 errno.o \
1156 1157 lwp.o \
1157 1158 ma.o \
1158 1159 machdep.o \
1159 1160 posix_aio.o \
1160 1161 pthr_attr.o \
1161 1162 pthr_barrier.o \
1162 1163 pthr_cond.o \
1163 1164 pthr_mutex.o \
1164 1165 pthr_rwlock.o \
1165 1166 pthread.o \
1166 1167 rand.o \
1167 1168 rwlock.o \
1168 1169 scalls.o \
1169 1170 sched.o \
1170 1171 sema.o \
1171 1172 sigaction.o \
1172 1173 sigev_thread.o \
1173 1174 spawn.o \
1174 1175 stack.o \
1175 1176 synch.o \
1176 1177 tdb_agent.o \
1177 1178 thr.o \
1178 1179 thread_interface.o \
1179 1180 thread_pool.o \
1180 1181 tls.o \
1181 1182 tsd.o \
1182 1183 tmem.o \
1183 1184 unwind.o
1184 1185
1185 1186 THREADS_INLINES = $(LIBCBASE)/threads/i386.il
1186 1187 $(TIL:%=pics/%) := CFLAGS += $(THREADS_INLINES)
1187 1188
1188 1189 # pics/mul64.o := CFLAGS += $(LIBCBASE)/crt/mul64.il
1189 1190
1190 1191 # large-file-aware components that should be built large
1191 1192
1192 1193 $(COMSYSOBJS64:%=pics/%) := \
1193 1194 CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1194 1195
1195 1196 $(SYSOBJS64:%=pics/%) := \
1196 1197 CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1197 1198
1198 1199 $(PORTGEN64:%=pics/%) := \
1199 1200 CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1200 1201
1201 1202 $(PORTSTDIO64:%=pics/%) := \
1202 1203 CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1203 1204
1204 1205 $(PORTSYS64:%=pics/%) := \
1205 1206 CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1206 1207
1207 1208 $(PORTSTDIO_W:%=pics/%) := \
1208 1209 CPPFLAGS += -D_WIDE
1209 1210
1210 1211 $(PORTPRINT_W:%=pics/%) := \
1211 1212 CPPFLAGS += -D_WIDE
1212 1213
1213 1214 $(PORTPRINT_C89:%=pics/%) := \
1214 1215 CPPFLAGS += -D_C89_INTMAX32
1215 1216
1216 1217 $(PORTSTDIO_C89:%=pics/%) := \
1217 1218 CPPFLAGS += -D_C89_INTMAX32
1218 1219
1219 1220 $(PORTI18N_COND:%=pics/%) := \
1220 1221 CPPFLAGS += -D_WCS_LONGLONG
1221 1222
1222 1223 .KEEP_STATE:
1223 1224
1224 1225 all: $(LIBS) $(LIB_PIC)
1225 1226
1226 1227 lint := CPPFLAGS += -I$(LIBCDIR)/$(MACH)/fp
1227 1228 lint := CPPFLAGS += -D_MSE_INT_H -D_LCONV_C99
1228 1229 lint := LINTFLAGS += -mn -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
1229 1230
1230 1231 lint:
1231 1232 @echo $(LINT.c) ...
1232 1233 @$(LINT.c) $(SRCS) $(LDLIBS)
1233 1234
1234 1235 $(LINTLIB):= SRCS=$(LIBCDIR)/port/llib-lc
1235 1236 $(LINTLIB):= CPPFLAGS += -D_MSE_INT_H
1236 1237 $(LINTLIB):= LINTFLAGS=-nvx
1237 1238
1238 1239 # object files that depend on inline template
1239 1240 $(TIL:%=pics/%): $(LIBCBASE)/threads/i386.il
1240 1241 # pics/mul64.o: $(LIBCBASE)/crt/mul64.il
1241 1242
1242 1243 # include common libc targets
1243 1244 include $(LIBCDIR)/Makefile.targ
1244 1245
1245 1246 # We need to strip out all CTF and DOF data from the static library
1246 1247 $(LIB_PIC) := DIR = pics
1247 1248 $(LIB_PIC): pics $$(PICS)
1248 1249 $(BUILD.AR)
1249 1250 $(MCS) -d -n .SUNW_ctf $@ > /dev/null 2>&1
1250 1251 $(MCS) -d -n .SUNW_dof $@ > /dev/null 2>&1
1251 1252 $(AR) -ts $@ > /dev/null
1252 1253 $(POST_PROCESS_A)
1253 1254
1254 1255 $(LIBCBASE)/crt/_rtbootld.s: $(LIBCBASE)/crt/_rtboot.s $(LIBCBASE)/crt/_rtld.c
1255 1256 $(CC) $(CPPFLAGS) $(CTF_FLAGS) -O -S $(C_PICFLAGS) \
1256 1257 $(LIBCBASE)/crt/_rtld.c -o $(LIBCBASE)/crt/_rtld.s
1257 1258 $(CAT) $(LIBCBASE)/crt/_rtboot.s $(LIBCBASE)/crt/_rtld.s > $@
1258 1259 $(RM) $(LIBCBASE)/crt/_rtld.s
1259 1260
1260 1261 # partially built from C source
1261 1262 pics/_rtbootld.o: $(LIBCBASE)/crt/_rtbootld.s
1262 1263 $(AS) $(ASFLAGS) $(LIBCBASE)/crt/_rtbootld.s -o $@
1263 1264 $(CTFCONVERT_O)
1264 1265
1265 1266 ASSYMDEP_OBJS= \
1266 1267 _lwp_mutex_unlock.o \
1267 1268 _stack_grow.o \
1268 1269 getcontext.o \
1269 1270 setjmp.o \
1270 1271 tls_get_addr.o \
1271 1272 vforkx.o
1272 1273
1273 1274 $(ASSYMDEP_OBJS:%=pics/%) := CPPFLAGS += -I.
1274 1275
1275 1276 $(ASSYMDEP_OBJS:%=pics/%): assym.h
1276 1277
1277 1278 # assym.h build rules
1278 1279
1279 1280 GENASSYM_C = $(LIBCDIR)/$(MACH)/genassym.c
1280 1281
1281 1282 genassym: $(GENASSYM_C)
1282 1283 $(NATIVECC) -I$(LIBCBASE)/inc -I$(LIBCDIR)/inc \
1283 1284 -D__EXTENSIONS__ $(CPPFLAGS.native) -o $@ $(GENASSYM_C)
1284 1285
1285 1286 OFFSETS = $(LIBCDIR)/$(MACH)/offsets.in
1286 1287
1287 1288 assym.h: $(OFFSETS) genassym
1288 1289 $(OFFSETS_CREATE) <$(OFFSETS) >$@
1289 1290 ./genassym >>$@
1290 1291
1291 1292 # derived C source and related explicit dependencies
1292 1293 $(LIBCDIR)/port/gen/errlst.c + \
1293 1294 $(LIBCDIR)/port/gen/new_list.c: $(LIBCDIR)/port/gen/errlist $(LIBCDIR)/port/gen/errlist.awk
1294 1295 cd $(LIBCDIR)/port/gen; pwd; $(AWK) -f errlist.awk < errlist
1295 1296
1296 1297 pics/errlst.o: $(LIBCDIR)/port/gen/errlst.c
1297 1298
1298 1299 pics/new_list.o: $(LIBCDIR)/port/gen/new_list.c
↓ open down ↓ |
481 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX