node-gdal icon indicating copy to clipboard operation
node-gdal copied to clipboard

node-gdal does not link with libiconv in Linux

Open rporres opened this issue 7 years ago • 0 comments

node-gdal version: 0.9.4 nodejs version: 6.9.2 gcc: 4.9.2

I'm building node-gdal from source in CentOS 6 against gdal and libiconv located in non-standard places. Everything works fine but node-gdal does not link with libiconv. I found in deps/libgdal/libgdal.gyp that -liconv flags are only set when compiling in mac. Is there any reason for this flag not to be present in a Linux build?

I worked around this issue by manually adding -liconv to LDFLAGS env variable

rporres avatar Apr 10 '17 12:04 rporres