TDengine/tests/script/sh/compile_udf.sh

12 lines
576 B
Bash
Raw Normal View History

2022-08-04 14:12:17 +00:00
set +e
rm -rf /tmp/udf/libbitand.so /tmp/udf/libsqrsum.so /tmp/udf/libgpd.so
2022-08-04 14:12:17 +00:00
mkdir -p /tmp/udf
echo "compile udf bit_and and sqr_sum"
gcc -fPIC -shared sh/bit_and.c -I../../include/libs/function/ -I../../include/client -I../../include/util -o /tmp/udf/libbitand.so
2022-08-09 02:25:32 +00:00
gcc -fPIC -shared sh/l2norm.c -I../../include/libs/function/ -I../../include/client -I../../include/util -o /tmp/udf/libl2norm.so
gcc -fPIC -shared sh/gpd.c -I../../include/libs/function/ -I../../include/client -I../../include/util -o /tmp/udf/libgpd.so
2022-08-04 14:12:17 +00:00
echo "debug show /tmp/udf/*.so"
ls /tmp/udf/*.so