Update git submodules
[LibreOffice.git] / external / python3 / python-3.3.3-elf-rpath.patch.1
bloba408858f5917d38e68c71990e11309bf46a5dbfb
1 set RPATH (only to be used on ELF platforms)
3 (currently nothing in LO actually links libpython3.so)
5 diff -ru python3.orig/Makefile.pre.in python3/Makefile.pre.in
6 --- python3.orig/Makefile.pre.in        2015-07-26 20:29:07.126194320 +0200
7 +++ python3/Makefile.pre.in     2015-07-26 20:37:21.814227530 +0200
8 @@ -566,7 +566,7 @@
9  
10  # Build the interpreter
11  $(BUILDPYTHON):        Programs/python.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY)
12 -       $(LINKCC) $(PY_CORE_LDFLAGS) $(LINKFORSHARED) -o $@ Programs/python.o $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS)
13 +       $(LINKCC) $(PY_CORE_LDFLAGS) $(LINKFORSHARED) -o $@ Programs/python.o $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) -Wl,-rpath,\$$ORIGIN
15  platform: $(BUILDPYTHON) pybuilddir.txt
16         $(RUNSHARED) $(PYTHON_FOR_BUILD) -c 'import sys ; from sysconfig import get_platform ; print("%s-%d.%d" % (get_platform(), *sys.version_info[:2]))' >platform
17 @@ -628,7 +628,7 @@
18         fi
20  libpython3.so: libpython$(LDVERSION).so
21 -       $(BLDSHARED) $(NO_AS_NEEDED) -o $@ -Wl,-h$@ $^
22 +       $(BLDSHARED) $(NO_AS_NEEDED) -o $@ -Wl,-h$@ $^ -Wl,-rpath,\$$ORIGIN
24  libpython$(LDVERSION).dylib: $(LIBRARY_OBJS)
25          $(CC) -dynamiclib -Wl,-single_module $(PY_CORE_LDFLAGS) -undefined dynamic_lookup -Wl,-install_name,$(prefix)/lib/libpython$(LDVERSION).dylib -Wl,-compatibility_version,$(VERSION) -Wl,-current_version,$(VERSION) -o $@ $(LIBRARY_OBJS) $(DTRACE_OBJS) $(SHLIBS) $(LIBC) $(LIBM); \