Files
macports-ports/R/R-RcppClassic/files/patch-unbreak-install_name_tool.diff
2023-03-07 20:14:33 -05:00

14 lines
778 B
Diff

# Undoes a breaking commit: https://github.com/eddelbuettel/rcppclassic/commit/c8ca1e64c5b1ca540cdf00968b1050c723263dfc
--- src/Makevars.orig 2022-11-16 06:56:29.000000000 +0800
+++ src/Makevars 2023-03-07 18:57:08.000000000 +0800
@@ -29,7 +29,7 @@
$(USERLIB): $(OBJECTS)
$(SHLIB_CXXLD) -o $(USERLIB) $^ $(SHLIB_CXXLDFLAGS) $(ALL_LIBS)
- @if test -e "/usr/bin/install_name_tool"; then /usr/bin/install_name_tool -add_rpath @loader_path/../lib$(R_ARCH) $(USERLIB); fi
+ @if test -e "/usr/bin/install_name_tool"; then /usr/bin/install_name_tool -id $(R_PACKAGE_DIR)/lib$(R_ARCH)/$(USERLIB) $(USERLIB); fi
# @if test -e "/usr/bin/strip" & test -e "/bin/uname" & [[ `uname` == "Linux" ]]; then /usr/bin/strip --strip-unneeded $(USERLIB); fi
$(USERLIBST): $(OBJECTS)