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