#!/bin/bash


ARCH=armv6

DEVICE=OS

HOST=arm

IOS_DEPLOY_TGT=3.2

IOS_BASE_SDK="4.2"

CFLAGS_FLAGS="-mcpu=cortex-a8 -marm"


DEVROOT=/Developer/Platforms/iPhone${DEVICE}.platform/Developer

SDKROOT=${DEVROOT}/SDKs/iPhone${DEVICE}4.3.sdk

export CFLAGS="-arch armv6 -pipe -no-cpp-precomp -isysroot $SDKROOT -miphoneos-version-min=$IOS_DEPLOY_TGT -I$SDKROOT/usr/include/"


export CFLAGS="$CFLAGS"

        export CPP="$DEVROOT/usr/bin/cpp-4.2"

        export CXX="$DEVROOT/usr/bin/g++-4.2"

        export CXXCPP="$DEVROOT/usr/bin/cpp-4.2"

        export CC="$DEVROOT/usr/bin/gcc-4.2"

        export LD=$DEVROOT/usr/bin/ld

        export AR=$DEVROOT/usr/bin/ar

        export AS=$DEVROOT/usr/bin/as

        export NM=$DEVROOT/usr/bin/nm

        export RANLIB=$DEVROOT/usr/bin/ranlib

        export LDFLAGS="-L$SDKROOT/usr/lib/"


        export CPPFLAGS=$CFLAGS

        export CXXFLAGS=$CFLAGS



./configure --host=arm-apple-darwin6

신고
Posted by genius3k

티스토리 툴바