osxcross-env is also no longer needed

This commit is contained in:
Thomas Pöchtrager 2015-02-24 21:19:27 +01:00
parent 86b2ab7052
commit 133a61d75a
3 changed files with 8 additions and 31 deletions

View File

@ -45,8 +45,7 @@ But be careful, that repository is known to cause [troubles](https://github.com/
Then run `./build.sh` to build the cross toolchain.
(It will search 'tarballs' for your SDK and then build in its own directory.)
**Don't forget** to add the printed `` `<path>/osxcross-env` `` to your `~/.profile` or `~/.bashrc`.
Then either run `source ~/.profile` or restart your shell session.
**Do not forget** to add the `<path>/target/bin` to your PATH variable.
That's it. See usage examples below.

View File

@ -352,35 +352,15 @@ if [ `osxcross-cmp ${SDK_VERSION/u/} ">=" 10.7` -eq 1 ]; then
test_compiler_cxx11 o64-clang++ $BASE_DIR/oclang/test_libcxx.cpp
fi
set +e
HAVE_CSH=0
which csh &>/dev/null
[ $? -eq 0 ] && HAVE_CSH=1
if [ $HAVE_CSH -eq 0 ]; then
which tcsh &>/dev/null
[ $? -eq 0 ] && HAVE_CSH=1
fi
CSHRC=""
[ $HAVE_CSH -eq 1 ] && CSHRC=", ~/.cshrc"
set -e
echo ""
echo "Now add"
echo "Do not forget to add"
echo ""
echo -e "\x1B[32m\`$OSXCROSS_ENV\`\x1B[0m"
echo -e "\x1B[32m${TARGET_DIR}/bin\x1B[0m"
echo ""
if [ $HAVE_CSH -eq 1 ]; then
echo "or in case of csh:"
echo ""
echo -e "\x1B[32msetenv PATH \`$OSXCROSS_ENV -v=PATH\`\x1B[0m"
echo ""
fi
echo "to your ~/.bashrc${CSHRC} or ~/.profile (including the '\`')"
echo "to your PATH variable."
echo ""
echo "Done! Now you can use o32-clang(++) and o64-clang(++) like a normal compiler"
echo "All done! Now you can use o32-clang(++) and o64-clang(++) like a normal compiler."
echo ""
echo "Example usage:"
echo ""

View File

@ -1,15 +1,14 @@
--- configure
+++ configure
@@ -16789,7 +16789,7 @@
@@ -16789,7 +16789,6 @@
LTO_LIB="-L${LLVM_LIB_DIR} -lLTO"
if test "x$rpathlink" = "xyes"; then
LTO_RPATH="-Wl,-rpath,$LLVM_LIB_DIR,--enable-new-dtags"
- LTO_LIB="$LTO_RPATH $LTO_LIB"
+ LTO_LIB="$LTO_LIB"
fi
LTO_DEF=-DLTO_SUPPORT
# DO NOT include the LLVM include dir directly,
@@ -16813,6 +16813,8 @@
@@ -16813,6 +16812,8 @@
@ -20,12 +19,11 @@
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
--- m4/llvm.m4
+++ m4/llvm.m4
@@ -27,7 +27,7 @@
@@ -27,7 +27,6 @@
[ LTO_LIB="-L${LLVM_LIB_DIR} -lLTO"
if test "x$rpathlink" = "xyes"; then
LTO_RPATH="-Wl,-rpath,$LLVM_LIB_DIR,--enable-new-dtags"
- LTO_LIB="$LTO_RPATH $LTO_LIB"
+ LTO_LIB="$LTO_LIB"
fi
LTO_DEF=-DLTO_SUPPORT
# DO NOT include the LLVM include dir directly,