Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v8.x-backport] build: add loader path to rpath for cctest #25681

Closed

Conversation

BethGriggs
Copy link
Member

Currently Node 8 MacOS shared libraray builds fail test-ci with cctest without this PR.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

@nodejs-github-bot nodejs-github-bot added build Issues and PRs related to build files or the CI. v8.x labels Jan 24, 2019
@richardlau richardlau added macos Issues and PRs related to the macOS platform / OSX. shared_lib Issues and PRs related to use of Node.js as a shared library. labels Jan 25, 2019
Building on Mac OS/X as follows:

```
./configure --shared
make -j4 test
```

Results in:

```
dyld: Library not loaded: @rpath/libnode.67.dylib
  Referenced from: /Users/rubys/git/node-shared/out/Release/cctest
  Reason: image not found
make: *** [cctest] Abort trap: 6
```

This change adds the loader path to the runtime path for the `cctest` executable.

PR-URL: nodejs#23168
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@BethGriggs BethGriggs force-pushed the backport-23168-to-v8.x branch from 1a19571 to d7b3f57 Compare March 20, 2019 13:05
@BethGriggs
Copy link
Member Author

@BethGriggs
Copy link
Member Author

BethGriggs commented Mar 20, 2019

@refack
Copy link
Contributor

refack commented Mar 20, 2019

GitHub side reference to #23168

BethGriggs pushed a commit that referenced this pull request Mar 20, 2019
Building on Mac OS/X as follows:

```
./configure --shared
make -j4 test
```

Results in:

```
dyld: Library not loaded: @rpath/libnode.67.dylib
  Referenced from: /Users/rubys/git/node-shared/out/Release/cctest
  Reason: image not found
make: *** [cctest] Abort trap: 6
```

This change adds the loader path to the runtime path for the `cctest` executable.

Backport-PR-URL: #25681
PR-URL: #23168
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@BethGriggs
Copy link
Member Author

Landed on v8.x-staging

@BethGriggs BethGriggs closed this Mar 20, 2019
@BethGriggs BethGriggs deleted the backport-23168-to-v8.x branch March 20, 2019 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues and PRs related to build files or the CI. macos Issues and PRs related to the macOS platform / OSX. shared_lib Issues and PRs related to use of Node.js as a shared library.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants