Commit Graph

12 Commits

Author SHA1 Message Date
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