Re: [Rcpp-devel] Getting different build commands on Linux vs. Mac OS

2018-05-03 Thread Dirk Eddelbuettel
On 3 May 2018 at 19:08, Evan Biederstedt wrote: | Given the R package structure, I was thinking it would be possible to link | to the C library (not installed with 'sudo make install') via the `-L` | flag, maybe `-L/something/src/bamdb/build` This would work if and only if ldconfig exported the (

Re: [Rcpp-devel] Getting different build commands on Linux vs. Mac OS

2018-05-03 Thread Evan Biederstedt
Hi Dirk I appreciate the help. > You have the hardest possibe deployment option here it requires temporary root to make a library a system library -- and R CMD ... does not have that. I think I was able to sidestep this. After installing bamdb without 'sudo make install'/root privileges, I was

Re: [Rcpp-devel] Getting different build commands on Linux vs. Mac OS

2018-05-03 Thread Dirk Eddelbuettel
On 3 May 2018 at 16:19, Evan Biederstedt wrote: | Working with Linux first, is it common to compile a C library (i.e. bamdb) | within /src, and then use extern? My understanding is that I will have to | change the R package's Makevars to compile the C library first, and then | link to this. | | I

Re: [Rcpp-devel] Getting different build commands on Linux vs. Mac OS

2018-05-03 Thread Evan Biederstedt
Hi @Keith Thanks for the help and apologies for the delay. You're correct---when I change the install name it does work, i.e. use `sudo install_name_tool -id /usr/local/lib/libbamdb.dylib /usr/local/lib/libbamdb.dylib` Thanks for this! I hadn't known about `@rpath` in Mac OS, and in retrospect I