summaryrefslogtreecommitdiff
path: root/dev-python/pypy3/files/2.3.1-shared-lib.patch
blob: ae1139f8986729f2a8c8e25c3b0853e52b754e31 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- rpython/translator/platform/posix.py
+++ rpython/translator/platform/posix.py
@@ -180,7 +180,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) \'-Wl,-rpath,$$ORIGIN\' -o $@')
 
         return m