liquidaty / zsv

zsv+lib: tabular data swiss-army knife CLI + world's fastest (simd) CSV parser
MIT License
209 stars 15 forks source link

Fix local wasm build issues on Ubuntu 22.04 LTS #270

Closed iamazeem closed 1 week ago

iamazeem commented 2 weeks ago

Signed-off-by: Azeem Sajid azeem.sajid@gmail.com

iamazeem commented 2 weeks ago

@liquidaty: Please review and merge. Thanks!

iamazeem commented 2 weeks ago

I was able to compile with emconfigure and emmake like this:

$ CROSS_COMPILING=yes PREFIX=amd64-linux-wasm emconfigure ./configure CONFIGFILE=config.emcc --enable-pic --disable-pie
$ emmake make build CONFIGFILE=config.emcc CFLAGS="-msse2 -msimd128 -fpic -pthread" LDFLAGS="-fpic -pthread"
$ emmake make install CONFIGFILE=config.emcc