diff Makefile @ 34:0ba8512ad4c5

Introduce the PYPY_LDLIBRARY make variable to name the generated PyPy shared library. This is needed because PyPy3.9 will have names with the minor version in it (e.g. libpypy3.9-c.so instead of libpypy3-c.so). This is a precondition for side-by-side installations of PyPy3 implementing different Python versions (currently 3.7, 3.8 or 3.9).
author Franz Glasner <f.glasner@feldmann-mg.com>
date Thu, 06 Oct 2022 12:35:52 +0200
parents f005c4d19ca4
children 7441c55209da
line wrap: on
line diff
--- a/Makefile	Thu Oct 06 11:38:05 2022 +0200
+++ b/Makefile	Thu Oct 06 12:35:52 2022 +0200
@@ -125,7 +125,7 @@
 	fi
 
 post-build:
-	${CP} ${BUILD_WRKSRC}/${PORTNAME}-c ${BUILD_WRKSRC}/lib${PORTNAME}-c.so ${WRKSRC}/pypy/goal/
+	${CP} ${BUILD_WRKSRC}/${PORTNAME}-c ${BUILD_WRKSRC}/${PYPY_LDLIBRARY} ${WRKSRC}/pypy/goal/
 
 do-install:
 	${SETENV} ${MAKE_ENV} TMPDIR=${WRKDIR}/build \