X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/ae1b611e316da9c0de29c6dc5a2c8ab1e97f9a91..2c4a8bb6222b88ff96fbf25372179646ce15f706:/apple-configure.sh diff --git a/apple-configure.sh b/apple-configure.sh index 68625e5..f22fc0b 100755 --- a/apple-configure.sh +++ b/apple-configure.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash -# Cycript - Optimizing JavaScript Compiler/Runtime -# Copyright (C) 2009-2015 Jay Freeman (saurik) +# Cycript - The Truly Universal Scripting Language +# Copyright (C) 2009-2016 Jay Freeman (saurik) # GNU Affero General Public License, Version 3 {{{ # @@ -23,15 +23,6 @@ set -e cd "${0%%/*}" -if ! which aclocal; then - touch aclocal.m4; fi -if ! which autoconf; then - touch configure.ac; fi -if ! which automake; then - touch Makefile.in; fi -if ! which autoheader; then - touch config.h.in; fi - flags=("$@") ccf=(-g0 -O3) @@ -41,6 +32,9 @@ function path() { xcs=$(xcode-select --print-path) mac=$(path macosx) +xct="${xcs}/Toolchains/XcodeDefault.xctoolchain/usr/lib" + +system=1 function configure() { local dir=$1 @@ -74,16 +68,18 @@ function configure() { ldf+=" -L../libuv.${arch}/.libs" ../configure --enable-maintainer-mode "${flags[@]}" --prefix="/usr" "$@" \ + --with-libclang="-rpath ${xct} ${xct}/libclang.dylib" \ CC="${cc} ${flg}" CXX="${cxx} ${flg}" OBJCXX="${cxx} ${flg}" \ CFLAGS="${ccf[*]}" CXXFLAGS="${ccf[*]}" OBJCXXFLAGS="${ccf[*]} ${obc}" \ - CPPFLAGS="${cpf}" LDFLAGS="${ldf}" + CPPFLAGS="${cpf}" LDFLAGS="${ldf}" CY_SYSTEM="$((1<