Skip to content

Commit

Permalink
libgambc: fix issue introduced by XCode 8 on iOS
Browse files Browse the repository at this point in the history
clock_gettime is now defined, but undefined on versions of iOS
below 10... this causes segfault at runtime. This fix simply
ignores clock_gettime on iOS.
  • Loading branch information
clpetersen committed Oct 26, 2016
1 parent 6c63059 commit db32365
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libraries/libgambc/make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,18 @@ package_patch
case $SYS_PLATFORM in
ios)
EXTRACONF=--host=arm
cp configure configure.tmp
cat configure.tmp | sed 's/#define HAVE_CLOCK_GETTIME/\/\/#define HAVE_CLOCK_GETTIME/g' > configure
;;
android|bb10|playbook)
EXTRACONF=--host=arm-eabi
;;
win32*)
EXTRACONF=--host=i386-mingw32
;;
win64*)
EXTRACONF=--host=i686-w64-mingw32
;;
linux*)
EXTRACONF=--host=i386-linux
;;
Expand Down

0 comments on commit db32365

Please sign in to comment.