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