ports/math/R/files/patch-src_main_Makefile.in
Joseph Mingrone c27670d577 math/R: Rename files/extra-patch-src_main_Makefile.in to
files/patch-src_main_Makefile.in, so that the SONAME for libR is included.
This was intended for r455296.
2017-12-01 15:28:01 +00:00

19 lines
867 B
Text

--- src/main/Makefile.in.orig 2017-07-16 08:46:49 UTC
+++ src/main/Makefile.in
@@ -110,7 +110,7 @@ libR_la_LIBADD = $(MAIN_OBJS) $(EXTRA_STATIC_LIBS) $(
libR_la_DEPENDENCIES = $(STATIC_LIBS) $(R_TZONE) @WANT_R_SHLIB_TRUE@ @USE_EXPORTFILES_TRUE@ $(top_builddir)/etc/R.exp
## The next is needed for macOS only at present
-LIBR_LDFLAGS = @LIBR_LDFLAGS@
+LIBR_LDFLAGS = -Wl,-soname,libR.so.%%LIBVER%%
all: R
@@ -200,6 +200,7 @@ install-bin: installdirs
install-lib: installdirs
@$(MKINSTALLDIRS) "$(DESTDIR)$(Rexeclibdir)"
@$(SHELL) $(top_srcdir)/tools/copy-if-change $(libR_la) "$(DESTDIR)$(Rexeclibdir)/$(libR_la)"
+ @cd "$(DESTDIR)$(Rexeclibdir)" && ln -s $(libR_la) $(libR_la).%%LIBVER%%
install-static: installdirs
@$(MKINSTALLDIRS) "$(DESTDIR)$(Rexeclibdir)"
@$(SHELL) $(top_srcdir)/tools/copy-if-change libR.a "$(DESTDIR)$(Rexeclibdir)/libR.a"