diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/build-data/cc/clang.txt | 1 | ||||
-rw-r--r-- | src/build-data/os/ios.txt | 26 | ||||
-rw-r--r-- | src/lib/entropy/darwin_secrandom/info.txt | 2 | ||||
-rwxr-xr-x | src/scripts/ci/travis/build.sh | 2 |
4 files changed, 31 insertions, 0 deletions
diff --git a/src/build-data/cc/clang.txt b/src/build-data/cc/clang.txt index 055315c3b..15538307c 100644 --- a/src/build-data/cc/clang.txt +++ b/src/build-data/cc/clang.txt @@ -80,5 +80,6 @@ x86_64 -> "-m64" ppc64 -> "-m64" darwin -> "-stdlib=libc++" +ios -> "-stdlib=libc++" netbsd -> "-D_NETBSD_SOURCE" </mach_abi_linking> diff --git a/src/build-data/os/ios.txt b/src/build-data/os/ios.txt new file mode 100644 index 000000000..6f3888b8f --- /dev/null +++ b/src/build-data/os/ios.txt @@ -0,0 +1,26 @@ +os_type unix + +soname_pattern_base "libbotan-{version_major}.{version_minor}.dylib" +soname_pattern_abi "libbotan-{version_major}.{version_minor}.{abi_rev}.dylib" +soname_pattern_patch "libbotan-{version_major}.{version_minor}.{abi_rev}.{version_patch}.dylib" + +# It doesn't have the 's' option; you need to use needs ranlib +ar_command "ar cr" +ar_needs_ranlib yes + +doc_dir doc + +<target_features> +dlopen +gettimeofday +gmtime_r +memset_s +readdir +timegm +sockets +threads +filesystem +</target_features> + +<aliases> +</aliases> diff --git a/src/lib/entropy/darwin_secrandom/info.txt b/src/lib/entropy/darwin_secrandom/info.txt index 2460d8f86..554a4b3d8 100644 --- a/src/lib/entropy/darwin_secrandom/info.txt +++ b/src/lib/entropy/darwin_secrandom/info.txt @@ -6,8 +6,10 @@ darwin_secrandom.h <os> darwin +ios </os> <frameworks> darwin -> Security +ios -> Security </frameworks> diff --git a/src/scripts/ci/travis/build.sh b/src/scripts/ci/travis/build.sh index 22c3ba1ca..a27cde117 100755 --- a/src/scripts/ci/travis/build.sh +++ b/src/scripts/ci/travis/build.sh @@ -75,8 +75,10 @@ if [ "${BUILD_MODE:0:6}" = "cross-" ]; then CFG_FLAGS+=(--disable-shared) MAKE_PREFIX=(xcrun --sdk iphoneos) if [ "$BUILD_MODE" = "cross-arm32" ]; then + CFG_FLAGS+=(--os=ios) CFG_FLAGS+=(--cpu=armv7 --cc-abi-flags="-arch armv7 -arch armv7s -stdlib=libc++") elif [ "$BUILD_MODE" = "cross-arm64" ]; then + CFG_FLAGS+=(--os=ios) CFG_FLAGS+=(--cpu=armv8-a --cc-abi-flags="-arch arm64 -stdlib=libc++") fi elif [ "$TRAVIS_OS_NAME" = "linux" ]; then |