view buildsys/scripts/setenv-sdk-ios.sh @ 256:7520e2260097

- added to configure some detection on how to compile .s/.S with --noexecstack (or similar), as compilers' defaults are often insane - since no-execstack handling is now in build, remove .note.GNU-stack section markers (were of limites use, anyways, b/c unportable or implemented inconsistently across platforms) - some ToDo, etc. updates
author Tassilo Philipp
date Sat, 20 May 2017 00:02:59 +0200
parents 3e629dc19168
children
line wrap: on
line source

#!/bin/sh
#export PATH=`xcode-select -print-path`/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:${PATH}
DEVELOPER=`xcode-select -print-path`
# WORKS: P="${DEVELOPER}/Platforms/iPhoneOS.platform/Developer"
P="${DEVELOPER}/Toolchains/XcodeDefault.xctoolchain"
export MANPATH="$P/usr/share/man:${MANPATH}"
export PATH="$P/usr/bin:${PATH}"

#if [ -z "${DEVELOPER}" ]; then
#DEVELOPER=/Developer
#fi
#export PATH="${DEVELOPER}/Platforms/iPhoneOS.platform/Developer/usr/bin:${PATH}"
# export CPATH="$P/usr/include:${CPATH}"
#if [ `exec sw_vers -productVersion` ]; then
#  case `sw_vers -productVersion` in
#    10.*)
#       
#      ;;
#  esac
#export PATH=${DEVELOPER}/Platforms/iPhoneOS.platform/Developer/usr/bin:${PATH}