diff --git a/README.md b/README.md index 64484ea..57f0850 100644 --- a/README.md +++ b/README.md @@ -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 `` `/osxcross-env` `` to your `~/.profile` or `~/.bashrc`. -Then either run `source ~/.profile` or restart your shell session. +**Do not forget** to add the `/target/bin` to your PATH variable. That's it. See usage examples below. diff --git a/build.sh b/build.sh index 96c6627..18a86df 100755 --- a/build.sh +++ b/build.sh @@ -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 "" diff --git a/patches/cctools-ld64-rpath.patch b/patches/cctools-ld64-rpath.patch index 5929f41..034a7d2 100644 --- a/patches/cctools-ld64-rpath.patch +++ b/patches/cctools-ld64-rpath.patch @@ -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,