[PATCH] link with libatomic for test
authorildumi95 <ileanadumi95@protonmail.com>
Mon, 7 Feb 2022 14:47:57 +0000 (15:47 +0100)
committerPaul Gevers <elbrus@debian.org>
Mon, 30 Oct 2023 19:29:46 +0000 (20:29 +0100)
Gbp-Pq: Name 0001-link-with-libatomic-for-test.patch

test/test.sh

index 2683a52ce7df46483b31969741920cbf09eacc34..de9bd235671fd7da4b435d267994493053c39a2a 100755 (executable)
@@ -25,7 +25,7 @@ run () {
     OUT=$1.out
     rm "$OUT" 2> /dev/null
 
-    gcc -I"../include" -O0 -g3 -Wall -Wextra -Winline -std=gnu99 $SOURCE $C_SRC -lm -lpcre2-8 -lcleri -luuid -luv -lyajl $LCRYPT -o "$OUT"
+    gcc -I"../include" -O0 -g3 -Wall -Wextra -Winline -std=gnu99 $SOURCE $C_SRC -lm -latomic -lpcre2-8 -lcleri -luuid -luv -lyajl $LCRYPT -o "$OUT"
     if [[ "$NOMEMTEST" -ne "1" ]]; then
         valgrind --tool=memcheck --error-exitcode=1 --leak-check=full -q ./$OUT
     else
@@ -45,4 +45,4 @@ else
     run "test_$name"
 fi
 
-exit $RET
\ No newline at end of file
+exit $RET