cmake: drop binutils-specific '-Wl,-EL' option

Fixes clang failure:

  clang: error: -Wl,-EL: 'linker' input unused [-Werror,-Wunused-command-line-argument]

-EL has an effect only when using OUTPUT_FORMAT or --oformat but rimage
uses neither.

The binaries produced by ld version 2.34 are strictly identical before
and after this removal.

It is not clear why -EL was ever added. It was added to src/Makefile.am
by commit 0d33e87433 and to src/CMakeLists.txt by commit 4e3ead0096
but these commits were initial additions of the entire files and they
did not get into detail.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
Marc Herbert 2021-10-24 08:08:08 +00:00 committed by Liam Girdwood
parent ecb921227e
commit bcbcec79e5
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ add_executable(rimage
)
target_compile_options(rimage PRIVATE
-Wall -Werror -Wl,-EL -Wmissing-prototypes -Wimplicit-fallthrough
-Wall -Werror -Wmissing-prototypes -Wimplicit-fallthrough
)
target_link_libraries(rimage PRIVATE "-lcrypto")