GeezerVison is showing github.com — build: add version-specific library path for AIX · nodejs/node@b05394e
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: common.gypi +4-1Lines changed: 4 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
579 | 579 | '-Wl,-brtl', |
580 | 580 | ], |
581 | 581 | }, { # else it's `AIX` |
| 582 | + 'variables': { |
| 583 | + 'gcc_major': '<!(<(python) -c "import os; import subprocess; CXX=os.environ.get(\'CXX\', \'g++\'); subprocess.run([CXX, \'-dumpversion\'])")' |
| 584 | + }, |
582 | 585 | # Disable the following compiler warning: |
583 | 586 | # |
584 | 587 | # warning: visibility attribute not supported in this |
|
589 | 592 | # out more relevant warnings. |
590 | 593 | 'cflags': [ '-Wno-attributes' ], |
591 | 594 | 'ldflags': [ |
592 | | - '-Wl,-blibpath:/usr/lib:/lib:/opt/freeware/lib/pthread/ppc64', |
| 595 | + '-Wl,-blibpath:/usr/lib:/lib:/opt/freeware/lib/gcc/powerpc-ibm-aix7.3.0.0/>(gcc_major)/pthread/ppc64:/opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/>(gcc_major)/pthread/ppc64:/opt/freeware/lib/pthread/ppc64', |
593 | 596 | ], |
594 | 597 | }], |
595 | 598 | ], |
|