Tools: tplg_parser: Remove -Wl,-EL to avoid build fail with xt-clang

The linker option to indicate little-endian is not needed. It causes
build fail:

clang-10: errorclang-10: : -Wl,-EL: 'linker' input unused
[-Werror,-Wunused-command-line-argument]
error: -Wl,-EL: 'linker' input unused
[-Werror,-Wunused-command-line-argument]
clang-10: error: -Wl,-EL: 'linker' input unused
[-Werror,-Wunused-command-line-argument]
clang-10: clang-10error: : error: -Wl,-EL: 'linker' input unused
[-Werror,-Wunused-command-line-argument]
-Wl,-EL: 'linker' input unused [-Werror,-Wunused-command-line-argument]
gmake[5]: *** [CMakeFiles/sof_tplg_parser.dir/build.make:90:
CMakeFiles/sof_tplg_parser.dir/process.c.o] Error 1

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
Seppo Ingalsuo 2023-10-25 16:56:09 +03:00 committed by Liam Girdwood
parent 3f2096c6b9
commit bb5d82b1fe
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ endif()
# TODO: add IPC4 option when it's ready. # TODO: add IPC4 option when it's ready.
target_compile_options(sof_tplg_parser PRIVATE target_compile_options(sof_tplg_parser PRIVATE
-g -O -Wall -Werror -Wl,-EL -fPIC -DPIC -g -O -Wall -Werror -fPIC -DPIC
-Wmissing-prototypes ${implicit_fallthrough} -Wmissing-prototypes ${implicit_fallthrough}
-DCONFIG_LIBRARY -D${tplg_ipc}) -DCONFIG_LIBRARY -D${tplg_ipc})