Debian Codegraph @

debian/patches/Makevars

raw
1
2 From: Jonathon Love <[email protected]>
3
4 Description: Fixed build process to use "dpkg-buildflags" (and prevent lint warning)
5 Upstream is not interested
6
7 Author: Jonathon Love <[email protected]>
8
9 Forwarded: http://lists.r-forge.r-project.org/pipermail/rcpp-devel/2015-August/008931.html
10
11 Index: r-cran-rinside/src/Makevars
12 ===================================================================
13 --- r-cran-rinside.orig/src/Makevars
14 +++ r-cran-rinside/src/Makevars
15 @@ -21,6 +21,10 @@ USERLIB=libRInside$(DYLIB_EXT)
16 USERLIBST=libRInside.a
17 USERDIR=../inst/lib
18
19 +ifneq ("$(wildcard /usr/bin/dpkg-buildflags)", "")
20 +HARDEN_FLAGS=$(shell dpkg-buildflags --get LDFLAGS)
21 +endif
22 +
23 PKG_CPPFLAGS = -I. -I../inst/include/
24 PKG_LIBS =
25
26 @@ -43,7 +47,7 @@ userLibrary: $(USERLIB) $(USERLIBST)
27 rm $(USERLIB) $(USERLIBST)
28
29 $(USERLIB): $(OBJECTS)
30 - $(SHLIB_CXXLD) -o $(USERLIB) $^ $(SHLIB_CXXLDFLAGS) $(ALL_LIBS)
31 + $(SHLIB_CXXLD) $(HARDEN_FLAGS) -o $(USERLIB) $^ $(SHLIB_CXXLDFLAGS) $(ALL_LIBS)
32 @if test -e "/usr/bin/install_name_tool"; then /usr/bin/install_name_tool -id $(R_PACKAGE_DIR)/lib$(R_ARCH)/$(USERLIB) $(USERLIB); fi
33
34 $(USERLIBST): $(OBJECTS)