Skip to content

Commit 0b3ec32

Browse files
committed
fix example build
1 parent 174a234 commit 0b3ec32

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

example/C/build_test.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ if [ -f ./rpl_test_2 ]; then
55
rm ./rpl_test_2
66
fi
77

8+
if [ -f ../../mysql_rpl_listener.so ]; then
9+
10+
echo "shared library present"
11+
12+
else
13+
14+
cd ../../
15+
./build.sh
16+
cd example/C/
17+
18+
fi
19+
820
gcc -v -g -O0 `mysql_config --cflags` \
921
-o ./rpl_test_2 ./rpl_test_2.c \
1022
-lm -lrt -ldl -L../../ -lmysql_rpl_listener `mysql_config --libs` -lpthread -ldl -Wl,-rpath,../../

0 commit comments

Comments
 (0)