Ironholds/triebeard

R_CPPFLAGS / R_CXXFLAGS ?

crowding opened this issue · 1 comments

Build failed on my system (OSX 10.14, r-devel; clang) with the following:

clang++ -std=gnu++11 -I"/usr/local/Cellar/r/devel_1/lib/R/include" -DNDEBUG  -I'/usr/local/lib/R/3.7/site-library/Rcpp/include' -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/include  -mtune=core2 -O3  -fPIC  -O3   -c alter.cpp -o alter.o
In file included from alter.cpp:1:
./r_trie.h:2:10: fatal error: 'radix.h' file not found
#include <radix.h>
         ^~~~~~~~~
1 error generated.

I found this was resolved by editing src/Makevars to read:

PKG_CPPFLAGS=-I../inst/include

Where the original had PKG_CXXFLAGS (I'm not sure the difference)

Me either. Wanna throw a patch in to just, well, add both? :D