Commit Graph

52 Commits

Author SHA1 Message Date
Thomas Pöchtrager
86b2ab7052 osxcross-env: remove obsolete LD_LIBRARY_PATH 2015-02-23 21:19:34 +01:00
Thomas Pöchtrager
49bc9aa407 ar, lipo, otool (etc.) should also be linked with -rpath for libLTO 2015-02-23 21:15:19 +01:00
Thomas Pöchtrager
736d20921d silence/fix -Wabsolute-value warnings 2015-02-23 21:07:29 +01:00
Thomas Pöchtrager
9264fa6ead work around a recent clang change 2015-02-17 19:51:17 +01:00
Thomas Pöchtrager
873ba3df94 misc freebsd fixes:
add tgmath.h intrinsic header file (required for the 10.10 sdk)
osxcross-macports: pass --ca-certificate=[...]/ca-root-nss.crt to wget
2015-02-08 09:18:49 +01:00
Thomas Pöchtrager
d6e191f24c make cctools / ld64 work properly with glibc < 2.10
https://github.com/tpoechtrager/cctools-port/pull/8
2014-12-26 11:26:43 +01:00
Thomas Pöchtrager
5a217484ec add osxcross-macports - a minimalistic macports packet manager for 16.000+ binary packages 2014-12-24 10:52:24 +01:00
Thomas Pöchtrager
e5d9db7ed0 update cctools to 862 and ld64 to 241.9
port changes:
- misc fixes
- add '-L/usr/pkg/lib' for NetBSD
- update libobjc2 to r37977
- silence / fix libobjc2 warnings
- remove freebsd ifdef in favor of '-isystem /usr/local'
- add installhdrs target (cctools-port/issues/2)
- prefer glibtoolize over libtoolize
- add support for OS X and iOS as host system (cctools-port/issues/1)
- add a workaround for a glibc 2.20 bug
- link with -rpath to ease finding libLTO
- check for __cxa_demangle in -lstdc++
- use std=c++0x instead of -std=gnu++0x
- fix ld64 to compile with libstdc++
- fix automake warnings
- ld64: enable all architectures

This also gets rid of the automake dependency.
2014-11-21 23:06:01 +01:00
Thomas Pöchtrager
0d9ba01d5b add support for the 10.10 SDK (DP1)
get rid of bc dependency
2014-09-13 15:32:42 +02:00
Thomas Pöchtrager
270f6d73f6 add support for new x86_64h architecture (haswell)
add support for multiple -arch flags with gcc (and clang + -oc-use-gcc-libs)
fix an unwind issue with -oc-use-gcc-libs + -mmacosx-version-min <= 10.5
update changelog
2014-09-13 15:32:42 +02:00
Thomas Pöchtrager
f1c5d5368d add a workaround for a glibc 2.20 bug 2014-09-11 00:58:44 +02:00
Thomas Pöchtrager
6c06a15b42 cctools: don't overwrite LD_LIBRARY_PATH 2014-07-05 11:39:36 +02:00
Thomas Pöchtrager
dce760ab01 cctools: check for __cxa_demangle in -lstdc++ 2014-06-20 11:14:06 +02:00
TheAssassin
dc75a88689 Accepting symlinked tarballs in build.sh
This does not require copying or moving the SDK file in there, and the SDK can not be deleted by accident.
2014-05-15 23:55:10 +02:00
Thomas Pöchtrager
523f4cd77c fix compiling ld64 with libc++ 2014-05-10 17:30:13 +02:00
Thomas Pöchtrager
c57030bc98 use -std=c++0x instead of -std=gnu++0x
as -std=gnu++0x seems to break compiling ld64 on some systems
2014-05-10 17:05:58 +02:00
Thomas Pöchtrager
4a685dbe73 cctools 855 + ld64 236.3
also add 'cctools 855 + ld64 134.9' as fallback for systems without
an up-to-date C++ standard library
2014-05-10 16:17:16 +02:00
Thomas Pöchtrager
9b642c3931 fix OSX_VERSION_MIN=default
take care of MACOSX_DEPLOYMENT_TARGET
fix a minor issue where '-oc-use-gcc-libs' would be ignored
2014-04-22 19:34:08 +02:00
Thomas Pöchtrager
e34da881ff misc wrapper changes:
- Machine -> Arch
- 'osxcross-conf': add missing OSXCROSS_VERSION
- error out on invald '-stdlib=' value
- add 'osxcross' util which can be used to check
  for an OSXCross installation
- fix 'libLTO.so: cannot open shared object file'
- listFiles(): windows implementation
- cleanup

get_dependencies.sh:
- debian: add --force-yes

add a patch to support some older linux dists
(such as debian squeeze)
2014-04-17 20:51:16 +02:00
Thomas Pöchtrager
1e8ede1d78 support OS X itself too 2014-04-14 21:59:03 +02:00
Thomas Pöchtrager
f969ed09db fix 'csh' detection 2014-04-06 22:51:39 +02:00
Thomas Pöchtrager
f8e57bfcd3 new compiler wrapper written in C++
to highlight some changes:

- this gets rid of the bash dependency (after installing)
- osxcross-env, osxcross-conf and (the fake) dsymutil are now implemented
  in the wrapper
- added: 'sw_vers' tool, which is required by some projects (llvm, ...)
- added '-oc-use-gcc-libs' option (uses './build_gcc.sh' libstdc++)

This new wrapper is also more restrict and several times faster than the bash
implementation (~0.2ms vs. 10ms+).
2014-04-06 22:27:59 +02:00
Thomas Pöchtrager
c0b2cf103d use two space indents 2014-04-06 15:58:15 +02:00
Thomas Pöchtrager
84377413a5 fix guess_sdk_version() (https://github.com/tpoechtrager/osxcross/issues/10) 2014-04-03 10:03:32 +02:00
Thomas Pöchtrager
6c79d88501 add SDK packaging script
libc++ works now out of the box as long 'tools/gen_sdk_package.sh'
is used to create the SDK package
2014-03-28 21:04:32 +01:00
Thomas Pöchtrager
a829f523b8 support NetBSD (https://github.com/tpoechtrager/osxcross/issues/7)
bump version (0.5 -> 0.6)
update CHANGELOG
misc adjustments
2014-03-26 20:39:20 +01:00
Don Bright
792b6aa470 display sdk version 2014-03-26 20:38:46 +01:00
Don Bright
5f159c93a0 make tar call more portable for netbsd (dont use J) 2014-03-26 20:38:46 +01:00
Don Bright
95a5b77f7e fix for netbsd sh 2014-03-26 20:38:46 +01:00
Don Bright
35961a4929 better detection of 10.4 2014-03-26 20:38:46 +01:00
Don Bright
2e97a17b95 update for SuSE, better detection of multiple tarballs 2014-03-26 20:38:46 +01:00
Don Bright
d6430c5332 typo in script 2014-03-26 20:36:11 +01:00
Don Bright
c697511015 automatically find the SDK version, allow SDK_VERSION env var, deal w ubuntu bug 2014-03-26 20:34:46 +01:00
Thomas Pöchtrager
995ad1d4ab fix building GCC on FreeBSD
add missing float.h intrinsic header (FreeBSD)
2014-03-26 20:32:56 +01:00
Thomas Pöchtrager
78d78d4276 Revert "~/.bashrc -> ~/.profile"
This reverts commit 7f6fcf3b085c8cf88cba5a606aaeaa18848ceb0d.
2014-03-26 20:32:56 +01:00
Thomas Pöchtrager
77b27e099f ~/.bashrc -> ~/.profile 2014-03-26 20:32:56 +01:00
Thomas Pöchtrager
3a7c2e6635 build bc on systems where it is not (pre-)installed 2014-03-26 20:32:56 +01:00
Thomas Pöchtrager
1077cf95fd switch to libc++ 3.4 (works fine with clang < 3.4)
get OSX_VERSION_MIN >= 10.9 working (defaults to libc++)
simplify the wrapper scripts a bit
2014-03-26 20:32:56 +01:00
Thomas Pöchtrager
99a8ee449f add a no-op dsymutil shell script to bypass dsymutil invocation errors in a more simple way (fixes https://github.com/tpoechtrager/osxcross/issues/1)
remove the gcc dsymutil patch (no longer needed)
2014-03-26 20:32:55 +01:00
Thomas Pöchtrager
2c38fb673e move duplicate code into a single file
add debug option (OCDEBUG=1 ./<script>)
update README
2014-03-26 20:32:55 +01:00
Thomas Pöchtrager
89d48e1a45 fix LIB_PATH issue 2014-03-26 20:32:55 +01:00
Thomas Pöchtrager
2a4842f3cc add libc++ build script
update README with libc++ build instructions and samples
fix mavericks SDK download link (pointed to 10.8)
build xar only for <=10.5
add -g0 to the clang invocation command to avoid dsymutil from being run (debugging is not supported, but I guess you don't want to debug the resulting binaries anyway if you build them on a non OS X system)
attempt to make the toolchain less path dependent (gcc still breaks though, because of hardcoded paths), but clang and cctools can be moved now
update cctools to 845
add DISABLE_LTO_SUPPORT option (DISABLE_LTO_SUPPORT=1 ./build.sh) to disable linking against libLTO.so
add support for 32 bit systems
add FreeBSD support
update PACKAGE script
2014-03-26 20:32:55 +01:00
Thomas Pöchtrager
65944f3394 help clang to find its own intrinsic headers (this issue appears to be fixed in clang 3.4+)
bump version to 0.5
2014-03-26 20:32:31 +01:00
Thomas Pöchtrager
d957737e0f really show an error message in case the SDK is not found 2014-03-26 20:32:31 +01:00
Thomas Pöchtrager
2c0cb38fbe more portable way to find the llvm lto.h header
should now support llvm 3.2-3.5
2014-03-26 20:32:30 +01:00
Thomas Pöchtrager
962e6acdfc small build script fixes 2014-03-26 20:32:30 +01:00
Thomas Pöchtrager
cbaa387542 small cleanup 2014-03-26 20:32:30 +01:00
Thomas Pöchtrager
d502ab0138 use a nifty preprocessor trick to workaround the __block issue in unistd.h
get rid of the  || exit 1  in build.sh by using  set -e
2014-03-26 20:29:50 +01:00
Thomas Pöchtrager
9c5a089a7f fix cctools path in osxcross-conf 2014-03-26 20:29:50 +01:00
Thomas Pöchtrager
55ae02b117 support building a gcc as well
rename the project to osxcross
bump version to 0.4
2014-03-26 20:29:50 +01:00