Fixed bug 4357 - iosbuild.sh broken with SDL 2.0.9
authorSam Lantinga <slouken@libsdl.org>
Tue, 31 Dec 2019 10:40:30 -0800
changeset 133897bcf24416ca6
parent 13388 4ad8a63ec49a
child 13390 0f7577d28c6c
Fixed bug 4357 - iosbuild.sh broken with SDL 2.0.9

Christoph Charles

The new source files for coremotion sensors don't seem to have been included correctly in configure.in. This leads to the build script ios-build.sh to fail at link time, complaining about missing symbols, namely about missing SDL_COREMOTION_SensorDriver.
configure
configure.ac
     1.1 --- a/configure	Mon Dec 30 17:56:56 2019 -0800
     1.2 +++ b/configure	Tue Dec 31 10:40:30 2019 -0800
     1.3 @@ -25106,6 +25106,14 @@
     1.4          #    have_haptic=yes
     1.5          #    EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
     1.6          #fi
     1.7 +        # Set up files for the sensor library
     1.8 +        if test x$enable_sensor = xyes; then
     1.9 +
    1.10 +$as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
    1.11 +
    1.12 +            SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
    1.13 +            have_sensor=yes
    1.14 +        fi
    1.15          # Set up files for the power library
    1.16          if test x$enable_power = xyes; then
    1.17  
     2.1 --- a/configure.ac	Mon Dec 30 17:56:56 2019 -0800
     2.2 +++ b/configure.ac	Tue Dec 31 10:40:30 2019 -0800
     2.3 @@ -3856,6 +3856,12 @@
     2.4          #    have_haptic=yes
     2.5          #    EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
     2.6          #fi
     2.7 +        # Set up files for the sensor library
     2.8 +        if test x$enable_sensor = xyes; then
     2.9 +            AC_DEFINE(SDL_SENSOR_COREMOTION, 1, [ ])
    2.10 +            SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
    2.11 +            have_sensor=yes
    2.12 +        fi
    2.13          # Set up files for the power library
    2.14          if test x$enable_power = xyes; then
    2.15              AC_DEFINE(SDL_POWER_UIKIT, 1, [ ])