Skip to content
Newer
Older
100644 15 lines (10 sloc) 479 Bytes
53eb5e0 @ian-plosker Initial commit
authored
1 {so_name, "stm_erl.so"}.
2
3 {port_sources, ["c_src/*.c"]}.
4
f7f8b41 @ian-plosker Initial semi-working version
authored
5 {port_envs, [
6 %% Make sure to set -fPIC when compiling leveldb
7 {"CFLAGS", "$CFLAGS -fPIC"},
8 {"DRV_CFLAGS", "$DRV_CFLAGS -Werror -I c_src/tinySTM/include -I c_src/tinySTM/src/atomic_ops"},
9 {"DRV_LDFLAGS", "$DRV_LDFLAGS c_src/tinySTM/lib/libstm.a"}
10 ]}.
53eb5e0 @ian-plosker Initial commit
authored
11
12 {pre_hooks, [{compile, "c_src/build_deps.sh"}]}.
13
14 {post_hooks, [{clean, "c_src/build_deps.sh clean"}]}.
Something went wrong with that request. Please try again.