Fix building libiconv with Clang 8

The target needs to be passed using '--target='
This commit is contained in:
Martchus 2019-09-01 21:51:32 +02:00
parent c31285130d
commit 5f4780339d
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ build() {
export LDFLAGS="${LDFLAGS} -L${_android_sysroot}/usr/lib"
# setup preprocessor (because the NDK doesn't provide a wrapper like for gcc and g++)
printf "#!/bin/bash\nexec \"$CXX\" -target ${_android_toolchain} -E \"\$@\"" > "$CPP"
printf "#!/bin/bash\nexec \"$CXX\" -target=${_android_toolchain} -E \"\$@\"" > "$CPP"
chmod +x "$CPP"
./configure \

View File

@ -50,7 +50,7 @@ build() {
export LDFLAGS="${LDFLAGS} -L${_android_sysroot}/usr/lib"
# setup preprocessor (because the NDK doesn't provide a wrapper like for gcc and g++)
printf "#!/bin/bash\nexec \"$CXX\" -target ${_android_toolchain} -E \"\$@\"" > "$CPP"
printf "#!/bin/bash\nexec \"$CXX\" -target=${_android_toolchain} -E \"\$@\"" > "$CPP"
chmod +x "$CPP"
./configure \