diff --git a/compile b/compile index e9281ae..46bac00 100755 --- a/compile +++ b/compile @@ -19,6 +19,11 @@ CC=clang CFLAGS="-Wall -Wextra -Werror -pedantic" LIBFLAGS="-fPIC -shared" +if [[ $CC == "gcc" ]]; then + # Used to disable the "ASan runtime does not come first in initial library list" error when compiling with gcc + export ASAN_OPTIONS=verify_asan_link_order=0 +fi + INCLUDE="$(find src -type d | xargs -I{} echo -n "-I{} ")" SRC="$(find src -type f -name "*.c" | xargs -I{} echo -n "{} ")"