| 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" |