Commit Graph

46 Commits

Author SHA1 Message Date
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
Thomas Pöchtrager
5a74122c92 ogcc wrapper: don't append '-arch' when '-arch' is already given through the invocation command
minimial build_gcc.sh cleanup
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
7403edf066 revert unintentionally committed change in build_gcc script 2014-03-26 20:29:50 +01:00
Thomas Pöchtrager
dc8c4719c3 enforce building gcc with clang - otherwise building gcc will fail (probably a configuration bug in gcc)
building gcc with gcc (targeting OS X on linux) causes the following errors:

error 1:

g++   -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc  -o xg++ \
          gcc.o ggc-none.o g++spec.o driver-i386.o darwin-driver.o libcommon-target.a \
           libcommon.a ../libcpp/libcpp.a   ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a
/usr/bin/ld: unrecognised emulation mode: acosx_version_min
Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 i386linux elf_l1om elf_k1om i386pep i386pe

error 2:

g++ -c  -DIN_GCC_FRONTEND -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I../../gcc/../libcpp/include  -I../../gcc/../libdecnumber -I../../gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc/../libbacktrace    cc1-checksum.c -o cc1-checksum.o
cc1plus: error: unrecognized command line option '-mmacosx-version-min=10.4'

after fixing the -mmacosx-version-min issue in the gcc/specs file, I get the following weird error (gmp is indeed installed):

g++ -c  -DIN_GCC_FRONTEND -g  -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I../../gcc/../libcpp/include  -I../../gcc/../libdecnumber -I../../gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc/../libbacktrace    cc1-checksum.c -o cc1-checksum.o
In file included from cc1-checksum.c:2:0:
../../gcc/system.h:641:17: fatal error: gmp.h: No such file or directory
 #include <gmp.h>

all these errors do not appear when clang is used for building gcc.
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