summaryrefslogtreecommitdiff
blob: 2876ac3a41648b12f7fbb02d79ce454412bf4f20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Respect ldflags on rscript
Patch by Sebastien Fabbro
https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=14506

--- src/unix/Makefile.in.orig	2010-12-22 16:58:19.000000000 +0000
+++ src/unix/Makefile.in	2010-12-22 16:54:16.000000000 +0000
@@ -66,7 +66,7 @@
 
 ## we need to build at install time to capture the correct 'rhome'
 install-Rscript:
-	$(CC) $(ALL_CPPFLAGS) $(ALL_CFLAGS) -DR_HOME='"$(rhome)"' -o Rscript \
+	$(CC) $(ALL_CPPFLAGS) $(ALL_CFLAGS) $(LDFLAGS) -DR_HOME='"$(rhome)"' -o Rscript \
 	  $(srcdir)/Rscript.c
 	@$(MKINSTALLDIRS) "$(DESTDIR)$(Rexecbindir)"
 	@$(INSTALL_PROGRAM) Rscript "$(DESTDIR)$(Rexecbindir)/Rscript"