summaryrefslogtreecommitdiff
path: root/demo
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2016-09-24 22:52:43 +0200
committerArmin Rigo <arigo@tunes.org>2016-09-24 22:52:43 +0200
commit78a03b278f0f8e3021f30eee2b54504c99457938 (patch)
treed50587dc128db3887ca34842d2ae00f165aad609 /demo
parent1700eee5e5d101d91beec0c0bc6896aa77e4f478 (diff)
downloadcffi-78a03b278f0f8e3021f30eee2b54504c99457938.tar.gz
$ORIGIN is better than .
Diffstat (limited to 'demo')
-rw-r--r--demo/embedding_test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/demo/embedding_test.c b/demo/embedding_test.c
index 224df1d..ede8cb9 100644
--- a/demo/embedding_test.c
+++ b/demo/embedding_test.c
@@ -16,7 +16,8 @@
There are platform-specific options to gcc to avoid needing
that, too. Linux:
- gcc -o embedding_test embedding_test.c _embedding_cffi*.so -Wl,-rpath=.
+ gcc -o embedding_test embedding_test.c _embedding_cffi*.so \
+ -Wl,-rpath=\$ORIGIN/
=====2=====