Commit Graph

55 Commits

Author SHA1 Message Date
Thomas Pöchtrager
c4a842ae23 Support extracting MacOS 13.x and MacOS 14.x SDKs.
Fix a libc++ include order issue in the Wrapper.
Fix for https://github.com/tpoechtrager/osxcross/issues/383
Introduce a complex C++20 test for SDK versions 13.3 and above, requiring Clang version 13.0 or higher.
Update the GCC version to 13.2.0 in the build_gcc.sh script.
2023-08-17 18:55:09 +02:00
Thomas Pöchtrager
17bb5e2d0a build_gcc.sh: Update GCC version to 12.1.0 2022-06-12 16:43:09 +02:00
Thomas Pöchtrager
5771a84795 Bump GCC version to 10.3.0 2021-04-08 15:30:01 +02:00
Thomas Pöchtrager
749cf4acad Bump GCC version to 10.2.0 2020-08-20 18:46:13 +02:00
Alexey Brodkin
534b90dacd Use official GNU download area
There're quite a few mirrors where GNU software might be found.
Though there're some problems with them:
 1. There's no guarantee any random mirror will be still up tomorrow
 2. For mere mortal it's not clear how credible if xxx-yyy-zzz.org
    in a sense that either tarball with sources might be corrupted
    unintentionally or even with some bad intentions.
    One solution here might be calculation of checksum but still
    as long as the main "FTP" storage of GNU project is up there's
    not much sense in using a _hard-coded_ mirror.

Unfortunately snapshots of GCC are not hosted at https://ftp.gnu.org/,
so keeping https://mirror.koddos.net for now.
2020-07-12 17:21:29 +03:00
Thomas Pöchtrager
40049bf59d build_gcc.sh: Update GCC_VERSION to 10.1.0 2020-06-01 12:13:53 +02:00
Thomas Pöchtrager
4d46f4bbf2 Build scripts & osxcross-macports: Tweak tarball download code 2020-04-10 19:46:06 +02:00
Thomas Pöchtrager
748108aec4 * Bump Version to 1.2
* Drop support for <= 10.5 SDKs (use osxcross-1.1 branch instead)
* Adjustments for ld64 512.4
2020-03-22 13:04:53 +01:00
Thomas Pöchtrager
6edf1ca936 * Add xcodebuild stub tool. Only '-version' is supported.
* build_compiler_rt.sh: Change git repository. The llvm.org one is no longer synced.
* build_compiler_rt.sh: Add check for os/lock.h.
* xcrun: "Support" -show-sdk-platform-path.
* sw_vers: Output 0CFFFF for Build Version.
2020-03-10 16:49:39 +01:00
Thomas Pöchtrager
2f504fe4ba * Update cctools to 927.0.2 and ld64 to 450.3
* Added back support for OpenBSD
* Some cleanup and various fixes
2019-11-02 13:26:21 +01:00
Thomas Pöchtrager
d6acb50bab Fix an oversight in build_gcc.sh 2019-10-23 17:27:20 +02:00
Thomas Pöchtrager
379f7648c3 Make TARGET_DIR configurable (#108, #137, #201) 2019-10-23 16:06:00 +02:00
Thomas Pöchtrager
edcbb2a654 Use https mirrors 2019-10-09 11:47:04 +02:00
Thomas Pöchtrager
194807cb8b build_gcc.sh: Update GCC_VERSION to 9.2.0 2019-08-19 20:46:00 +02:00
Thomas Pöchtrager
ada9ea8d1b Some cleanup 2019-06-04 18:34:11 +02:00
Thomas Pöchtrager
caf707bf92 Fix building GCC < 9.0.0 with SDK >= 10.14 2019-06-02 11:54:02 +02:00
Thomas Pöchtrager
68bdbd9452 New:
* Added support for TAPIv3 stubs (including "zippering" target)
* Added support for MacOSX SDKs up to 10.14
* Added new SDK packaging script for SDKs that end with ".xip" (tools/gen_sdk_package_pbzx.sh <xcode.xip>) (tested up to Xcode 10.2.1)
* Updated cctools to 921 and ld64 to 409.12

Fixed:
* Implemented fix for https://github.com/tpoechtrager/osxcross/issues/171
* Implemented fix for https://github.com/tpoechtrager/osxcross/issues/178
* Implemented fix for https://github.com/tpoechtrager/osxcross/issues/182

Changed:
* cctools, ld64, apple-libtapi and xar are now "git clone"'d and no longer come with OSXCross.

Removed:
* Support for Cygwin and *BSD (besides FreeBSD)
* Support for building OSXCross with GCC
2019-06-01 19:57:44 +02:00
Thomas Pöchtrager
7183d7c45d Temporary fix for #156 2018-12-07 13:12:36 +01:00
Thomas Pöchtrager
4640f61540 Various build_gcc.sh fixes (closes #121) 2017-08-13 23:42:37 +02:00
Thomas Pöchtrager
6c5ff4207e #120 2017-08-06 09:36:01 +02:00
Frederick Zhang
742c8e9610 patch darwin-driver.c to compile gcc 6.3.0
see https://gcc.gnu.org/viewcvs/gcc/trunk/gcc/config/darwin-driver.c?r1=244010&r2=244009&pathrev=244010
2017-01-28 20:24:46 +11:00
Hartmut Goebel
f9515fe9e5 Add descriptive header to build scripts. 2017-01-18 10:47:13 +01:00
Thomas Pöchtrager
98a7b55070 Cygwin: Avoid symlinks and append .exe to executables (#91) 2016-10-29 19:26:05 +02:00
Thomas Pöchtrager
c270662f73 build_gcc.sh: Change default GCC version to 6.2.0 2016-09-18 20:40:29 +02:00
Thomas Pöchtrager
b89ec78e31 build_gcc.sh: Change default GCC version to 6.1.0 2016-05-04 20:14:38 +02:00
Thomas Pöchtrager
c56acb776a build_gcc.sh: change default gcc version to 5.3.0 2016-01-11 20:55:19 +01:00
Thomas Pöchtrager
73e0b1587f Add GCC PR66035 patch 2015-10-04 18:58:46 +02:00
Thomas Pöchtrager
1c6e42e2f2 cleanup 2015-07-20 21:13:36 +02:00
Thomas Pöchtrager
29a5fee522 * add windows support via cygwin
* add openbsd and dragonfly support
* replace `` with $() in bash scripts
* misc other changes
2015-07-19 22:28:10 +02:00
Thomas Pöchtrager
6c7ed2bd27 build_gcc.sh: change default gcc version to 5.2.0 2015-07-17 19:56:00 +02:00
Thomas Pöchtrager
5127b44d52 build_gcc.sh: change default gcc version to 5.1.0 2015-04-27 19:41:32 +02:00
Thomas Pöchtrager
18d5e5b28a update gcc to 4.9.2 2014-11-09 17:43:03 +01:00
Thomas Pöchtrager
06c8060aae rudimentary fortran support 2014-10-01 19:53:41 +02:00
Thomas Pöchtrager
45b8510f70 update gcc to 4.9.1 2014-07-17 22:43:43 +02:00
Thomas Pöchtrager
867345ed8f use gcc to compile gcc (there was a weird '-mmacosx-version-min=' issue during gcc compilation with earlier versions) 2014-07-17 22:43:29 +02:00
Thomas Pöchtrager
961a97a32f tweak gcc configure flags 2014-07-17 22:02:41 +02:00
Thomas Pöchtrager
1eac22f6da get libstdc++ mutex header working with clang + -oc-use-gcc-libs + -mmacosx-version-min= < 10.7 2014-04-23 19:31:49 +02:00
Thomas Pöchtrager
115d200466 do not run gcc 'make install' with -j because it seems to cause troubles 2014-04-22 22:40:05 +02:00
Thomas Pöchtrager
8b7886350a gcc 4.8.2 -> 4.9.0
add a patch to make -oc-use-gcc-libs more friendly to use
2014-04-22 21:17:15 +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
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
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
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
5e82ba96f7 add '--enable-checking=release' to the gcc configure flags 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
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