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