regression: 1.1.3 cannot be build with -fLTO
version 1.1.1 can be build with LTO (-flto), but 1.1.3 no longer builds with
[100%] Linking C executable waiter_test_wrap
/usr/bin/x86_64-pc-linux-gnu-gcc -march=native -O2 -flto -fno-stack-protector -pipe -Wl,-O1 -Wl,--as-needed -Wl,--wrap=chef_cook CMakeFiles/waiter_test_wrap.dir/waiter_test_wrap.c.o CMakeFiles/waiter_test_wrap.dir/chef.c.o -o waiter_test_wrap -Wl,-rpath,/var/tmp/portage/dev-util/cmocka-1.1.3/work/cmocka-1.1.3-abi_x86_64.amd64/src ../../../src/libcmocka.so.0.5.1 /usr/lib/librt.so
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/dev-util/cmocka-1.1.3/temp/cc6TI0Tu.ltrans0.ltrans.o: in function `calc_uptime':
<artificial>:(.text+0x43): undefined reference to `__wrap_uptime'
collect2: error: ld returned 1 exit status
GCC version 8.2.0
Edited by David Heidelberg