Merge pull request #20 from braydonf/leveldb-rpath

Add rpath for leveldb
This commit is contained in:
Chris Kleeschulte 2015-07-10 17:35:26 -04:00
commit 7a73b8da47
2 changed files with 7 additions and 2 deletions

View File

@ -17,7 +17,7 @@
'GCC_ENABLE_CPP_RTTI': 'YES',
'MACOSX_DEPLOYMENT_TARGET': '10.9'
}
}
}
]
],
'cflags_cc': [
@ -32,7 +32,7 @@
'<!(./platform/os.sh lib)'
],
'ldflags': [
'-Wl,-rpath,<!(./platform/os.sh osdir)'
'-Wl,-rpath,<!(./platform/os.sh osdir),-rpath,<!(./platform/os.sh btcdir)/src/leveldb'
]
}
}]

View File

@ -61,6 +61,11 @@ if test x"$1" = x'osdir'; then
exit 0
fi
if test x"$1" = x'btcdir'; then
echo -n "${BITCOIN_DIR}"
exit 0
fi
if test -z "$1" -o x"$1" = x'ext'; then
echo -n "${ext}"
fi