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
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
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); \