Version 5.4.3.2, tag libreoffice-5.4.3.2
[LibreOffice.git] / external / python3 / python-3.3.3-elf-rpath.patch.1
blob029d98c0310dd13cc9f4cabf9b1b8cc43021b154
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 @@ -550,7 +550,7 @@
9  
10  # Build the interpreter
11  $(BUILDPYTHON):        Programs/python.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY)
12 -       $(LINKCC) $(PY_LDFLAGS) $(LINKFORSHARED) -o $@ Programs/python.o $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
13 +       $(LINKCC) $(PY_LDFLAGS) $(LINKFORSHARED) -o $@ Programs/python.o $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST) -Wl,-rpath,\$$ORIGIN
15  platform: $(BUILDPYTHON) pybuilddir.txt
16         $(RUNSHARED) $(PYTHON_FOR_BUILD) -c 'import sys ; from sysconfig import get_platform ; print(get_platform()+"-"+sys.version[0:3])' >platform
17 --- python3.orig/Makefile.pre.in        2015-07-05 18:50:07.000000000 +0200
18 +++ python3/Makefile.pre.in     2015-07-26 17:34:00.386488960 +0200
19 @@ -607,7 +607,7 @@
20         fi
22  libpython3.so: libpython$(LDVERSION).so
23 -       $(BLDSHARED) $(NO_AS_NEEDED) -o $@ -Wl,-h$@ $^
24 +       $(BLDSHARED) $(NO_AS_NEEDED) -o $@ -Wl,-h$@ $^ -Wl,-rpath,\$$ORIGIN
26  libpython$(LDVERSION).dylib: $(LIBRARY_OBJS)
27          $(CC) -dynamiclib -Wl,-single_module $(PY_LDFLAGS) -undefined dynamic_lookup -Wl,-install_name,$(prefix)/lib/libpython$(LDVERSION).dylib -Wl,-compatibility_version,$(VERSION) -Wl,-current_version,$(VERSION) -o $@ $(LIBRARY_OBJS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST); \