Commit 40e320c
committed
build: update common.gypi for z/OS
- Don't use icu data file on z/OS; use libnode's bundled ICU data.
- Include required defines, cflags, ldflags, and remove unsupported ones,
following switch to clang compiler.
- Remove _ALL_SOURCE, as _POSIX_C_SOURCE and _POSIX_SOURCE already
enable all required library functions (in deps/uv/CMakeLists.txt, only
_OPEN_SYS is required to enable setgroups (in grp.h) instead of
_ALL_SOURCE); also remove dup _OPEN_SYS_SOCK_IPV6.
- Add -D_EXT to defines (for setenv, and vsam.js' `__KEY_*` macros).
- Add _POSIX_C_SOURCE=200809L to enable at least `utimensat`.
- Add clang option -mzos-target=zosv2r5 also to ldflags, otherwise the
default LE dataset is used that may not be for the current target.
- Add -m64 to ldflags, otherwise ld passes `AMODE=31,LIST,..` to
the binder, causing unresolved symbols if the non-64 suffixed version
of the compiler was used (e.g. ibm-clang instead of ibm-clang64).
- Add zoslib/include-wrappers/c++ in include_dirs for custom aligned new
and delete operators.
Signed-off-by: Gaby Baghdadi <baghdadi@ca.ibm.com>1 parent 1167f85 commit 40e320c
1 file changed
Lines changed: 26 additions & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | 132 | | |
137 | 133 | | |
138 | 134 | | |
| |||
227 | 223 | | |
228 | 224 | | |
229 | 225 | | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
| 226 | + | |
235 | 227 | | |
236 | 228 | | |
237 | 229 | | |
| |||
485 | 477 | | |
486 | 478 | | |
487 | 479 | | |
488 | | - | |
| 480 | + | |
489 | 481 | | |
490 | 482 | | |
491 | 483 | | |
| |||
513 | 505 | | |
514 | 506 | | |
515 | 507 | | |
516 | | - | |
| 508 | + | |
517 | 509 | | |
518 | 510 | | |
519 | 511 | | |
| |||
596 | 588 | | |
597 | 589 | | |
598 | 590 | | |
599 | | - | |
| 591 | + | |
600 | 592 | | |
601 | 593 | | |
602 | 594 | | |
603 | | - | |
| 595 | + | |
604 | 596 | | |
605 | 597 | | |
606 | 598 | | |
| |||
619 | 611 | | |
620 | 612 | | |
621 | 613 | | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
622 | 617 | | |
623 | 618 | | |
624 | 619 | | |
| |||
837 | 832 | | |
838 | 833 | | |
839 | 834 | | |
| 835 | + | |
| 836 | + | |
840 | 837 | | |
841 | 838 | | |
842 | 839 | | |
843 | 840 | | |
844 | 841 | | |
845 | 842 | | |
846 | 843 | | |
| 844 | + | |
847 | 845 | | |
848 | 846 | | |
849 | 847 | | |
850 | | - | |
851 | 848 | | |
852 | 849 | | |
853 | | - | |
854 | 850 | | |
855 | | - | |
| 851 | + | |
856 | 852 | | |
857 | 853 | | |
858 | 854 | | |
859 | | - | |
860 | | - | |
861 | 855 | | |
862 | 856 | | |
863 | | - | |
864 | | - | |
865 | | - | |
866 | | - | |
867 | | - | |
868 | | - | |
869 | | - | |
870 | | - | |
871 | | - | |
872 | | - | |
873 | | - | |
874 | | - | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
875 | 865 | | |
876 | 866 | | |
877 | | - | |
| 867 | + | |
| 868 | + | |
878 | 869 | | |
879 | 870 | | |
880 | | - | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
881 | 875 | | |
882 | 876 | | |
883 | 877 | | |
| |||
0 commit comments