Changeset 05435d6 in subsurface


Ignore:
Timestamp:
Jun 21, 2017, 9:19:23 PM (4 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
ac750bbf
Parents:
f0c9032
git-author:
Dirk Hohndel <dirk@…> (06/21/17 21:12:19)
git-committer:
Dirk Hohndel <dirk@…> (06/21/17 21:19:23)
Message:

Android build: work around odd build problem with missing rand()

I don't quite understand why this isn't correctly substituted to lrand48()
by the header file, but patching it in the source is easy enough.

Signed-off-by: Dirk Hohndel <dirk@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packaging/android/build.sh

    rd97055d r05435d6  
    244244        # We don't want to find the HTTP_Parser package of the build host by mistake
    245245        perl -pi -e 's/FIND_PACKAGE\(HTTP_Parser\)/#FIND_PACKAGE(HTTP_Parser)/' libgit2-${LIBGIT2_VERSION}/CMakeLists.txt
     246        # also, with libgit-0.25.1 and ndk-14b we see an odd build failure with a missing rand() symbol
     247        # trivial workaround is to just call lrand48()
     248        perl -pi -e 's/seed = rand/seed = (int)lrand48/' libgit2-${LIBGIT2_VERSION}/src/cache.c
    246249        mkdir -p libgit2-build-"$ARCH"
    247250        pushd libgit2-build-"$ARCH"
Note: See TracChangeset for help on using the changeset viewer.