On Wed, Nov 6, 2019 at 8:50 AM Gix, Brian <brian.gix(a)intel.com> wrote:
CCLD unit/test-ecdh
/usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: /tmp/test-
ecdh.XGzxNu.ltrans0.ltrans.o: in function `__wrap_l_getrandom':
/home/bgix/work/user_space/ell/unit/test-ecdh.c:52: undefined reference to
`l_getrandom'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:1541: unit/test-ecdh] Error 1
make: *** [Makefile:1190: all] Error 2
FWIW, I can reproduce this issue on my Ubuntu 19.10 box:
$ make CFLAGS=-flto check
...
CC unit/test-ecdh.o
CCLD unit/test-ecdh
/usr/bin/ld: /tmp/test-ecdh.guYgVf.ltrans0.ltrans.o: in function `__wrap_l_getra
ndom':
<artificial>:(.text+0x2a): undefined reference to `l_getrandom'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:1542: unit/test-ecdh] Error 1
-Ossama