Skip to content

Commit 6352288

Browse files
rubysBethGriggs
authored andcommittedMar 20, 2019
build: add loader path to rpath for cctest
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>
1 parent 2b2ad96 commit 6352288

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎node.gyp

+5
Original file line numberDiff line numberDiff line change
@@ -956,6 +956,11 @@
956956
['OS=="solaris"', {
957957
'ldflags': [ '-I<(SHARED_INTERMEDIATE_DIR)' ]
958958
}],
959+
[ 'node_shared=="true"', {
960+
'xcode_settings': {
961+
'OTHER_LDFLAGS': [ '-Wl,-rpath,@loader_path', ],
962+
},
963+
}],
959964
],
960965
}
961966
], # end targets

0 commit comments

Comments
 (0)
Please sign in to comment.