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