mirror of https://github.com/nodejs/node.git
build: add version-specific library path for AIX
Add the version-specific directory containing the C/C++ runtime libraries to `-blibpath` on AIX. This will help link `node` against the correct libraries at run-time when compiled with a different version of the GNU C/C++ compiler without having to manually set a `LIBPATH` environment variable. PR-URL: https://github.com/nodejs/node/pull/53585 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Beth Griggs <bethanyngriggs@gmail.com>pull/53826/head
parent
cc1f49751a
commit
b05394ea6a
|
@ -579,6 +579,9 @@
|
||||||
'-Wl,-brtl',
|
'-Wl,-brtl',
|
||||||
],
|
],
|
||||||
}, { # else it's `AIX`
|
}, { # else it's `AIX`
|
||||||
|
'variables': {
|
||||||
|
'gcc_major': '<!(<(python) -c "import os; import subprocess; CXX=os.environ.get(\'CXX\', \'g++\'); subprocess.run([CXX, \'-dumpversion\'])")'
|
||||||
|
},
|
||||||
# Disable the following compiler warning:
|
# Disable the following compiler warning:
|
||||||
#
|
#
|
||||||
# warning: visibility attribute not supported in this
|
# warning: visibility attribute not supported in this
|
||||||
|
@ -589,7 +592,7 @@
|
||||||
# out more relevant warnings.
|
# out more relevant warnings.
|
||||||
'cflags': [ '-Wno-attributes' ],
|
'cflags': [ '-Wno-attributes' ],
|
||||||
'ldflags': [
|
'ldflags': [
|
||||||
'-Wl,-blibpath:/usr/lib:/lib:/opt/freeware/lib/pthread/ppc64',
|
'-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',
|
||||||
],
|
],
|
||||||
}],
|
}],
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue