Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[configure.ac] SAI version check fix for gcc 10.2 (bullseye) (sonic-n…
…et#1049) The command to build a check program was: ``` gcc -lsai -I./SAI/inc -I./SAI/experimental -I./SAI/meta conftest.cpp -o conftest ``` This, however, does not work on gcc 10.2 where the linker wants first the executable and then the shared library: ``` gcc -I./SAI/inc -I./SAI/experimental -I./SAI/meta conftest.cpp -lsai -o conftest ``` However CXX_FLAGS comes first before the source file, so added --no-as-needed as a fix for this issue to make it link against libsai in any order passed to the linker. Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
- Loading branch information