Browse Source

Merge branch 'master' of git+ssh://openadk.org/git/openadk

Waldemar Brodkorb 11 years ago
parent
commit
88d6fbaf01
3 changed files with 15 additions and 2 deletions
  1. 1 1
      Makefile
  2. 1 1
      mk/kernel-vars.mk
  3. 13 0
      toolchain/gcc/patches/4.7.3/openbsd-lto.patch

+ 1 - 1
Makefile

@@ -2,7 +2,7 @@
 # material, please see the LICENCE file in the top-level directory.
 
 _UNLIMIT=	__limit=$$(ulimit -dH 2>/dev/null); \
-		test -n "$$__limit" && ulimit -dS $$__limit;
+		test -n "$$__limit" && ulimit -Sd $$__limit;
 
 all: checkreloc .prereq_done
 	@${_UNLIMIT} ${GMAKE_INV} all

+ 1 - 1
mk/kernel-vars.mk

@@ -23,4 +23,4 @@ ADK_KCPPFLAGS+=		-DBCM47XX_OVERRIDE_FLASHSIZE=0x800000 \
 			-DBCM47XX_OVERRIDE_CFESIZE=0x40000
 endif
 
-KERNEL_MAKE_ENV+=	KCPPFLAGS='${ADK_KCPPFLAGS}' PATH="$$PATH:${TOOLS_DIR}"
+KERNEL_MAKE_ENV+=	KCPPFLAGS='${ADK_KCPPFLAGS}' PATH="${TOOLS_DIR}:$$PATH"

+ 13 - 0
toolchain/gcc/patches/4.7.3/openbsd-lto.patch

@@ -0,0 +1,13 @@
+diff -Nur gcc-4.7.3.orig/gcc/config.host gcc-4.7.3/gcc/config.host
+--- gcc-4.7.3.orig/gcc/config.host	Tue Oct 18 08:14:14 2011
++++ gcc-4.7.3/gcc/config.host	Tue Jan  7 04:33:29 2014
+@@ -292,6 +292,9 @@
+     out_host_hook_obj=host-solaris.o
+     host_xmake_file="${host_xmake_file} x-solaris"
+     ;;
++  *-*-openbsd*)
++    host_lto_plugin_soname=liblto_plugin.so.0.0
++    ;;
+   *-*-linux*)
+     out_host_hook_obj=host-linux.o
+     host_xmake_file="${host_xmake_file} x-linux"