File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -89,13 +89,13 @@ case "$with_arch" in
8989
9090 # automake FLAGS defined here
9191 AM_CFLAGS="-fno-inline-functions -nostdlib -mlongcalls"
92- AM_LDFLAGS="-nostdlib "
93- AM_CCASFLAGS="-fno-inline-functions -nostdlib -mlongcalls "
92+ AM_LDFLAGS=""
93+ AM_CCASFLAGS=""
9494
9595 # GCC needs these additional flags on top of any user flags.
9696 CFLAGS="${CFLAGS:+$CFLAGS } -O2 -g -Wall -Werror -Wl,-EL -Wmissing-prototypes"
97- LDFLAGS="${LDFLAGS:+$LDFLAGS } ${AM_LDFLAGS} "
98- CCASFLAGS="${CCASFLAGS:+$CCASFLAGS } ${AM_CCASFLAGS} "
97+ LDFLAGS="${LDFLAGS:+$LDFLAGS } -nostdlib "
98+ CCASFLAGS="${CCASFLAGS:+$CCASFLAGS } -fno-inline-functions -nostdlib -mlongcalls "
9999
100100 ARCH="xtensa"
101101 AC_SUBST ( ARCH )
Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ if BUILD_XTENSA
66LOG_COMPILER = xt-run
77endif
88
9+ # cmocka needs stdlib
10+ override LDFLAGS := $(filter-out -nostdlib,$(LDFLAGS ) )
11+
912override AM_CFLAGS := \
1013 $(filter-out -nostdlib,$(AM_CFLAGS ) ) \
1114 $(SOF_INCDIR )
You can’t perform that action at this time.
0 commit comments