diff --git a/math/R/Makefile b/math/R/Makefile index 57e213e..9215d48 100644 --- a/math/R/Makefile +++ b/math/R/Makefile @@ -131,7 +131,9 @@ USE_LDCONFIG= ${PREFIX}/lib/R/lib .endif post-patch: - @${REINPLACE_CMD} -e "s|/usr/local|${LOCALBASE}|g" ${WRKSRC}/configure + @${REINPLACE_CMD} -e "s|/usr/local|${LOCALBASE}|g" \ + -e 's|LIBR_LDFLAGS=""|LIBR_LDFLAGS="-Wl,-soname,libR.so.${PORTVERSION:R:R}"|' \ + ${WRKSRC}/configure ## TODO: Add missing soname and soversion to shared libraries post-install: