mgorny 15/03/08 14:01:56
Added: boot0-10.1-drop-unsupport-cflags.patch
boot0-10.1-gcc46.patch
Log:
Add FreeBSD 10.1 ebuilds,
https://github.com/gentoo/gentoo-portage-rsync-mirror/pull/46 by nigoro.
(Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key
EFB4464E!)
Revision Changes Path
1.1
sys-freebsd/boot0/files/boot0-10.1-drop-unsupport-cflags.patch
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/boot0/files/boot0-10.1-drop-unsupport-cflags.patch?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/boot0/files/boot0-10.1-drop-unsupport-cflags.patch?rev=1.1&content-type=text/plain
Index: boot0-10.1-drop-unsupport-cflags.patch
===================================================================
diff --git a/sys/boot/efi/libefi/Makefile b/sys/boot/efi/libefi/Makefile
index 76ed0ca..2d1d39d 100644
--- a/sys/boot/efi/libefi/Makefile
+++ b/sys/boot/efi/libefi/Makefile
@@ -17,7 +17,4 @@ CFLAGS+= -I${.CURDIR}/../../../../lib/libstand
CFLAGS+= -I${.CURDIR}/../../common
-# Suppress warning from clang for FreeBSD %b and %D formats
-CFLAGS+= -fformat-extensions
-
.include <bsd.lib.mk>
diff --git a/sys/boot/i386/libi386/Makefile b/sys/boot/i386/libi386/Makefile
index d714c74..a5cfa3c 100644
--- a/sys/boot/i386/libi386/Makefile
+++ b/sys/boot/i386/libi386/Makefile
@@ -52,9 +52,6 @@ CFLAGS+= -I${.CURDIR}/../../common
-I${.CURDIR}/../common \
# the location of libstand
CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/
-# Suppress warning from clang for FreeBSD %b and %D formats
-CFLAGS+= -fformat-extensions
-
.if ${MACHINE_CPUARCH} == "amd64"
CLEANFILES+= machine
machine:
1.1 sys-freebsd/boot0/files/boot0-10.1-gcc46.patch
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/boot0/files/boot0-10.1-gcc46.patch?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/boot0/files/boot0-10.1-gcc46.patch?rev=1.1&content-type=text/plain
Index: boot0-10.1-gcc46.patch
===================================================================
diff --git a/sys/boot/i386/Makefile.inc b/sys/boot/i386/Makefile.inc
index 472b275..0c9409d 100644
--- a/sys/boot/i386/Makefile.inc
+++ b/sys/boot/i386/Makefile.inc
@@ -13,8 +13,6 @@ LDFLAGS+= -nostdlib
.if ${MACHINE_CPUARCH} == "amd64"
CFLAGS+= -m32
ACFLAGS+= -m32
-# LD_FLAGS is passed directly to ${LD}, not via ${CC}:
-LD_FLAGS+= -m elf_i386_fbsd
AFLAGS+= --32
.endif
diff --git a/sys/boot/i386/boot2/Makefile b/sys/boot/i386/boot2/Makefile
index 428950e..6a15450 100644
--- a/sys/boot/i386/boot2/Makefile
+++ b/sys/boot/i386/boot2/Makefile
@@ -113,3 +113,10 @@ machine:
# XXX: clang integrated-as doesn't grok .codeNN directives yet
CFLAGS.boot1.S= ${CLANG_NO_IAS}
CFLAGS+= ${CFLAGS.${.IMPSRC:T}}
+
+# gcc 4.6 or later version, -fno-asynchronous-unwind-tables is required to
build.
+CFLAGS+= -fno-asynchronous-unwind-tables
+
+.if ${MACHINE_CPUARCH} == "amd64"
+LD_FLAGS+= -m elf_i386_fbsd
+.endif
diff --git a/sys/boot/i386/gptboot/Makefile b/sys/boot/i386/gptboot/Makefile
index a90e712..d60ae00 100644
--- a/sys/boot/i386/gptboot/Makefile
+++ b/sys/boot/i386/gptboot/Makefile
@@ -81,3 +81,8 @@ machine:
# XXX: clang integrated-as doesn't grok .codeNN directives yet
CFLAGS.gptldr.S= ${CLANG_NO_IAS}
CFLAGS+= ${CFLAGS.${.IMPSRC:T}}
+
+.if ${MACHINE_CPUARCH} == "amd64"
+LD_FLAGS+= -m elf_i386_fbsd
+.endif
+
diff --git a/sys/boot/i386/gptzfsboot/Makefile
b/sys/boot/i386/gptzfsboot/Makefile
index 5eb2383..c10a917 100644
--- a/sys/boot/i386/gptzfsboot/Makefile
+++ b/sys/boot/i386/gptzfsboot/Makefile
@@ -78,3 +78,8 @@ machine:
# XXX: clang integrated-as doesn't grok .codeNN directives yet
CFLAGS.gptldr.S= ${CLANG_NO_IAS}
CFLAGS+= ${CFLAGS.${.IMPSRC:T}}
+
+.if ${MACHINE_CPUARCH} == "amd64"
+LD_FLAGS+= -m elf_i386_fbsd
+.endif
+
diff --git a/sys/boot/i386/zfsboot/Makefile b/sys/boot/i386/zfsboot/Makefile
index 149f43a..be1e46a 100644
--- a/sys/boot/i386/zfsboot/Makefile
+++ b/sys/boot/i386/zfsboot/Makefile
@@ -91,3 +91,8 @@ machine:
# XXX: clang integrated-as doesn't grok .codeNN directives yet
CFLAGS.zfsldr.S= ${CLANG_NO_IAS}
CFLAGS+= ${CFLAGS.${.IMPSRC:T}}
+
+.if ${MACHINE_CPUARCH} == "amd64"
+LD_FLAGS+= -m elf_i386_fbsd
+.endif
+