Skip to content

Commit 7e46459

Browse files
committed
configure: for native targets allow CC as as
1 parent 2a92c5f commit 7e46459

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

configure.ac

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,18 +144,16 @@ if test -z "$CROSS_AS"; then
144144
if test \( "$machine" = "i386" -o "$machine" = "x86_64" \) -a "$CONFIG_HOST" != "Darwin"; then
145145
AC_PATH_PROG([CROSS_AS], [as])
146146
if test -z "$CROSS_AS"; then
147-
AC_PATH_PROG([CROSS_AS], [clang])
148-
if test -z "$CROSS_AS"; then
149-
AC_MSG_ERROR([gnu assembler not found, please install clang or binutils])
150-
else
151-
CROSS_ASFLAGS="-m32 -x assembler -c"
152-
fi
147+
AC_MSG_NOTICE([Using ${CC} as as...])
148+
CROSS_AS=${CC}
149+
CROSS_ASFLAGS="-m32 -x assembler -c"
153150
else
154151
CROSS_ASFLAGS="--32"
155152
fi
156153
else
157154
AC_PATH_PROG([CROSS_AS], [clang])
158155
if test -n "$CROSS_AS"; then
156+
AC_MSG_NOTICE([Using clang as as...])
159157
CROSS_ASFLAGS="-x assembler -target i686-unknown-linux-gnu -c"
160158
else
161159
AC_MSG_ERROR([386 assembler not found, please install clang or binutils-i686-linux-gnu])

0 commit comments

Comments
 (0)