Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c6df68e337401ca412ea64bf1ae7db84cb7feb41
Ticket: d19aef1487a940bbf8ce7553b4aacc88e5ae9621
Does not cross-compile for iOS 6 - patch included.
User & Date: anonymous on 2014-07-30 06:58:13
Changes

  1. icomment:
    compile with (Makefile syntax) in <tcldir>/unix/:
    GCC_BIN=$(shell xcrun --sdk iphoneos --find gcc)
    IOS_SDK=$(shell xcrun --sdk iphoneos --show-sdk-path)
    CFLAGS=-arch armv7 -Os -F$(IOS_SDK)/System/Library/Frameworks -isysroot "$(IOS_SDK)" -Wimplicit -pipe -miphoneos-version-min=6.1 -no-cpp-precomp -I$(IOS_SDK)/usr/include/
    
    all:
        ./configure CC="$(GCC_BIN)" CFLAGS="$(CFLAGS)" --host=arm-apple-darwin --disable-load
        make
        make install DESTDIR=/tmp/tcl-root
    
    Note: The unsigned software runs on a jailbroken iOS device, e.g. iPod touch 4g, iPhone 4, ...
    
    Also, the first of the proposed changes may allow --disable-load for other platforms as well. This is not iOS or Apple specific. The second of the proposed changes (#ifdef...) does no harm whatsoever, as long as Tcl still compiles on OSX.
    
  2. login: "anonymous"
  3. mimetype: "text/plain"
  4. username: "bef"