Skip to content
This repository has been archived by the owner on Jun 8, 2024. It is now read-only.

Avoid brittle linking workarounds #24

Merged
merged 1 commit into from
Dec 17, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions binding.gyp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
'includes': [ 'common.gypi' ],
'variables': {
'osrm%':'<!(pwd)/../Project-OSRM',
"module_name":"osrm",
"module_path":"./lib/",
'cwd%':'<!(pwd)',
Expand All @@ -10,24 +11,22 @@
{
'target_name': '<(module_name)',
'include_dirs': [
'<@(cwd)/../Project-OSRM/Library/',
'<@(osrm)/Library',
'./src/'
],
'libraries': [
'-L<@(cwd)/../Project-OSRM/build',
'-L<@(osrm)/build',
'-lOSRM',
'-lboost_program_options',
'-lboost_regex',
'-lboost_thread',
'-lboost_system',
'-lboost_filesystem',
'<@(cwd)/../Project-OSRM/build/libUUID.a',
'<@(cwd)/../Project-OSRM/build/libGITDESCRIPTION.a'
'-lboost_filesystem'
],
'conditions': [
[ 'OS=="linux"', {
'libraries+':[
'-Wl,-rpath=<@(cwd)/../Project-OSRM/build',
'-Wl,-rpath=<@(osrm)/build',
]}
],
['std == "c++11"', {
Expand Down