[pypy-commit] pypy default: make pypy-c runnable by default in shared setup
fijal
noreply at buildbot.pypy.org
Tue Oct 14 20:38:25 CEST 2014
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch:
Changeset: r73952:2ae639f5628f
Date: 2014-10-14 20:38 +0200
http://bitbucket.org/pypy/pypy/changeset/2ae639f5628f/
Log: make pypy-c runnable by default in shared setup
diff --git a/rpython/translator/platform/posix.py b/rpython/translator/platform/posix.py
--- a/rpython/translator/platform/posix.py
+++ b/rpython/translator/platform/posix.py
@@ -182,7 +182,7 @@
'int main(int argc, char* argv[]) '
'{ return $(PYPY_MAIN_FUNCTION)(argc, argv); }" > $@')
m.rule('$(DEFAULT_TARGET)', ['$(TARGET)', 'main.o'],
- '$(CC_LINK) $(LDFLAGS_LINK) main.o -L. -l$(SHARED_IMPORT_LIB) -o $@')
+ '$(CC_LINK) $(LDFLAGS_LINK) main.o -L. -l$(SHARED_IMPORT_LIB) -o $@ -Wl,-rpath="$ORIGIN/"')
return m
More information about the pypy-commit
mailing list