bug-gnu-libiconv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gnu-libiconv] Compilation error when building for Android


From: Bruno Haible
Subject: Re: [bug-gnu-libiconv] Compilation error when building for Android
Date: Mon, 30 Jan 2023 00:28:07 +0100

[Re-adding the mailing list in CC]

Alexey Rochev wrote:
> I'm trying to build libiconv 1.17 using vcpkg package manager. As far as I
> understand, vcpkg uses CMake to extract path to compiler and compilation
> flags from NDK's builtin CMake toolchain file, and passes them to configure
> script. In my case it uses:
> CC=/home/alexey/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang
> CPPFLAGS=--target=aarch64-none-linux-android21 -DANDROID -D_FORTIFY_SOURCE=2
> ...
> _FORTIFY_SOURCE=2 is set by default in Android NDK -
> https://android.googlesource.com/platform/ndk/+/refs/tags/ndk-r25b/build/cmake/android-legacy.toolchain.cmake#474
> 
> Forcing vcpkg to add -U_FORTIFY_SOURCE to CFLAGS indeed allows it to build
> libiconv.

Thanks for the infos. A fix has been committed to Gnulib today:
https://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=522aea1093a598246346b3e1c426505c344fe19a

The fix will be contained in the next libiconv release.

Bruno






reply via email to

[Prev in Thread] Current Thread [Next in Thread]