Skip to content

Commit bcbcec7

Browse files
marc-hblgirdwood
authored andcommitted
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 0d33e87 and to src/CMakeLists.txt by commit 4e3ead0 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>
1 parent ecb9212 commit bcbcec7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ add_executable(rimage
2525
)
2626

2727
target_compile_options(rimage PRIVATE
28-
-Wall -Werror -Wl,-EL -Wmissing-prototypes -Wimplicit-fallthrough
28+
-Wall -Werror -Wmissing-prototypes -Wimplicit-fallthrough
2929
)
3030

3131
target_link_libraries(rimage PRIVATE "-lcrypto")

0 commit comments

Comments
 (0)