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