mix-objects: inline linkenv
This commit is contained in:
@@ -27,13 +27,6 @@ function mkPop2Bench(spec: SPEC): Bench & Linkable {
|
|||||||
async link(objectPath) {
|
async link(objectPath) {
|
||||||
// Set up environment variables.
|
// Set up environment variables.
|
||||||
// FIXME: use -rpath or -rpath-link after I find out why.
|
// FIXME: use -rpath or -rpath-link after I find out why.
|
||||||
const linkenv = { ...process.env };
|
|
||||||
linkenv.LD_LIBRARY_PATH = [
|
|
||||||
path.join(PREFIX, 'lib'),
|
|
||||||
path.join(SYSROOT_PREFIX, 'lib'),
|
|
||||||
path.join(SYSROOT_PREFIX, 'usr', 'lib')
|
|
||||||
].join(':');
|
|
||||||
|
|
||||||
const objects = objectPath(base.benchData().objectNames);
|
const objects = objectPath(base.benchData().objectNames);
|
||||||
|
|
||||||
const options = [
|
const options = [
|
||||||
@@ -51,7 +44,14 @@ function mkPop2Bench(spec: SPEC): Bench & Linkable {
|
|||||||
// Execute the link command
|
// Execute the link command
|
||||||
const proc = checkedSpawnSync(FLANG, options, {
|
const proc = checkedSpawnSync(FLANG, options, {
|
||||||
stdio: "inherit",
|
stdio: "inherit",
|
||||||
env: linkenv,
|
env: {
|
||||||
|
...process.env,
|
||||||
|
LD_LIBRARY_PATH: [
|
||||||
|
path.join(PREFIX, 'lib'),
|
||||||
|
path.join(SYSROOT_PREFIX, 'lib'),
|
||||||
|
path.join(SYSROOT_PREFIX, 'usr', 'lib')
|
||||||
|
].join(':')
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
if (proc.error) {
|
if (proc.error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user