[LTP] [PATCH v2] open_posix_testsuite: Fix compilation issues

Cyril Hrubis chrubis@suse.cz
Tue May 5 16:36:40 CEST 2020


Hi!
> Fix compilation issues:
> 1. Add the '-lpthread -lrt -lm' config into LDFLAGS
> 2. Add the '-pthread' config into CFLAGS
> 3. Update makefile and locate-test script
>
> If only add -pthread to LDFLAGS and CFLAGS,
> some cases will fail to compile, such as timers/twoevtimers.c,
> need to add -lrt to compile successfully.

As discussed previously we should add the flags to the testcases that
actually needs them instead of adding them to all testcases.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list