Blob Blame History Raw
--- annobin.orig/tests/libannocheck-test	2022-06-23 10:16:50.270910280 +0100
+++ annobin-10.76/tests/libannocheck-test	2022-06-23 10:17:42.873589350 +0100
@@ -32,7 +32,7 @@ then
 	exit 1
 fi
 
-COMMAND="$GCC use-libannocheck.o -L $LIBANNOCHECKDIR -lannocheck -o use-libannocheck -lelf -ldw -liberty -Wl,-rpath=$LIBANNOCHECKDIR -Wl,-z,now"
+COMMAND="$GCC use-libannocheck.o -L $LIBANNOCHECKDIR -fno-lto -lannocheck -o use-libannocheck -lelf -ldw -liberty -Wl,-rpath=$LIBANNOCHECKDIR -Wl,-z,now"
 $COMMAND
 if [ $? != 0 ];
 then
@@ -50,7 +50,7 @@ then
 	exit 1
 fi
 
-COMMAND="$GCC use-libannocheck.o -L $LIBANNOCHECKDIR -lannocheck -o use-libannocheck -lelf -ldw -liberty -Wl,-rpath=$LIBANNOCHECKDIR -Wl,-z,lazy"
+COMMAND="$GCC use-libannocheck.o -L $LIBANNOCHECKDIR -fno-lto -lannocheck -o use-libannocheck -lelf -ldw -liberty -Wl,-rpath=$LIBANNOCHECKDIR -Wl,-z,lazy"
 $COMMAND
 if [ $? != 0 ];
 then