Changeset acee6f4 in subsurface


Ignore:
Timestamp:
Jul 3, 2017, 9:45:55 AM (5 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
bd18b6b
Parents:
36d462e
git-author:
Dirk Hohndel <dirk@…> (07/03/17 09:42:51)
git-committer:
Dirk Hohndel <dirk@…> (07/03/17 09:45:55)
Message:

build.sh: build against older SDK / minimum OSX version

On Mac we want to make sure that we don't only run on the OS that
we were built on, but all the way back to 10.10 (that's the oldest
that Qt supports).

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/build.sh

    r36d462e racee6f4  
    2525# Verify that the Xcode Command Line Tools are installed
    2626if [ $PLATFORM = Darwin ] ; then
     27        OLDER_MAC="-mmacosx-version-min=10.10 -isysroot/Developer/SDKs/MacOSX10.10.sdk"
     28        OLDER_MAC_CMAKE="-DCMAKE_OSX_DEPLOYMENT_TARGET=10.10 -DCMAKE_OSX_SYSROOT=/Developer/SDKs/MacOSX10.10.sdk/"
    2729        if [ ! -d /usr/include ] ; then
    2830                echo "Error: Xcode Command Line Tools are not installed"
     
    107109        mkdir -p build
    108110        cd build
    109         cmake -DCMAKE_INSTALL_PREFIX=$INSTALL_ROOT -DCMAKE_BUILD_TYPE=Release -DBUILD_CLAR=OFF ..
     111        cmake $OLDER_MAC_CMAKE -DCMAKE_INSTALL_PREFIX=$INSTALL_ROOT -DCMAKE_BUILD_TYPE=Release -DBUILD_CLAR=OFF ..
    110112        make -j4
    111113        make install
     
    150152        autoreconf --install ..
    151153fi
    152 ../configure --prefix=$INSTALL_ROOT --disable-examples
     154CFLAGS="$OLDER_MAC -I$INSTALL_ROOT/include" ../configure --prefix=$INSTALL_ROOT --disable-examples
    153155make -j4
    154156make install
     
    202204        fi
    203205
    204         cmake -DCMAKE_BUILD_TYPE=Release -DQTONLY=TRUE -DQT5BUILD=ON \
     206        cmake $OLDER_MAC_CMAKE -DCMAKE_BUILD_TYPE=Release -DQTONLY=TRUE -DQT5BUILD=ON \
    205207                -DCMAKE_INSTALL_PREFIX=$INSTALL_ROOT \
    206208                -DBUILD_MARBLE_TESTS=NO \
     
    242244        mkdir -p build
    243245        cd build
    244         cmake -DCMAKE_BUILD_TYPE=Release \
     246        cmake $OLDER_MAC_CMAKE -DCMAKE_BUILD_TYPE=Release \
    245247                -DCMAKE_INSTALL_PREFIX=$INSTALL_ROOT \
    246248                -DBUILD__TESTS=NO \
Note: See TracChangeset for help on using the changeset viewer.