summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2010-12-30 14:55:47 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2010-12-30 14:55:47 (GMT)
commitd1fc34d563a9fd06a78226b1bb4e56286c70e035 (patch)
treee71e106006d670ee75334178eb7a6171d9ad831e /Makefile.pre.in
parent0dbebc02edfb5489248ab42f14f90cf9435e5796 (diff)
downloadcpython-d1fc34d563a9fd06a78226b1bb4e56286c70e035.zip
cpython-d1fc34d563a9fd06a78226b1bb4e56286c70e035.tar.gz
cpython-d1fc34d563a9fd06a78226b1bb4e56286c70e035.tar.bz2
Build and install libpython3.so.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 3a179f6..323f68d 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -166,6 +166,7 @@ DIST= $(DISTFILES) $(DISTDIRS)
LIBRARY= @LIBRARY@
LDLIBRARY= @LDLIBRARY@
BLDLIBRARY= @BLDLIBRARY@
+PY3LIBRARY= @PY3LIBRARY@
DLLLIBRARY= @DLLLIBRARY@
LDLIBRARYDIR= @LDLIBRARYDIR@
INSTSONAME= @INSTSONAME@
@@ -420,7 +421,7 @@ coverage:
# Build the interpreter
-$(BUILDPYTHON): Modules/python.o $(LIBRARY) $(LDLIBRARY)
+$(BUILDPYTHON): Modules/python.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY)
$(LINKCC) $(PY_LDFLAGS) $(LINKFORSHARED) -o $@ Modules/python.o $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
platform: $(BUILDPYTHON)
@@ -454,6 +455,9 @@ libpython$(LDVERSION).so: $(LIBRARY_OBJS)
$(BLDSHARED) -o $@ $(LIBRARY_OBJS) $(MODLIBS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST); \
fi
+libpython3.so: libpython$(LDVERSION).so
+ $(BLDSHARED) -o $@ -Wl,-hl$@ $^
+
libpython$(VERSION).dylib: $(LIBRARY_OBJS)
$(CC) -dynamiclib -Wl,-single_module $(PY_LDFLAGS) -undefined dynamic_lookup -Wl,-install_name,$(prefix)/lib/libpython$(VERSION).dylib -Wl,-compatibility_version,$(VERSION) -Wl,-current_version,$(VERSION) -o $@ $(LIBRARY_OBJS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST); \
@@ -851,6 +855,9 @@ altbininstall: $(BUILDPYTHON)
(cd $(DESTDIR)$(LIBDIR); $(LN) -sf $(INSTSONAME) $(LDLIBRARY)) \
fi \
fi; \
+ if test -n "$(PY3LIBRARY)"; then \
+ $(INSTALL_SHARED) $(PY3LIBRARY) $(DESTDIR)$(LIBDIR)/$(PY3LIBRARY); \
+ fi; \
else true; \
fi