From 0d12610172a4b2aecb10165af751190da5c3cfe8 Mon Sep 17 00:00:00 2001 From: Yuta SATOH Date: Sat, 8 Oct 2016 13:50:44 +0900 Subject: sys-freebsd/freebsd-sources: add ${PN}-11.0-gentoo.patch --- .../files/freebsd-sources-11.0-gentoo.patch | 22 ++++++++++++++++++++++ .../freebsd-sources/freebsd-sources-11.0.ebuild | 1 + 2 files changed, 23 insertions(+) create mode 100644 sys-freebsd/freebsd-sources/files/freebsd-sources-11.0-gentoo.patch diff --git a/sys-freebsd/freebsd-sources/files/freebsd-sources-11.0-gentoo.patch b/sys-freebsd/freebsd-sources/files/freebsd-sources-11.0-gentoo.patch new file mode 100644 index 0000000..6acd6aa --- /dev/null +++ b/sys-freebsd/freebsd-sources/files/freebsd-sources-11.0-gentoo.patch @@ -0,0 +1,22 @@ +diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk +index e27ea93..615dbac 100644 +--- a/sys/conf/kern.mk ++++ b/sys/conf/kern.mk +@@ -5,7 +5,7 @@ + # + CWARNFLAGS?= -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \ + -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \ +- -Wundef -Wno-pointer-sign ${FORMAT_EXTENSIONS} \ ++ -Wundef -Wno-pointer-sign \ + -Wmissing-include-dirs -fdiagnostics-show-option \ + -Wno-unknown-pragmas \ + ${CWARNEXTRA} +@@ -86,7 +86,7 @@ FORMAT_EXTENSIONS= -fformat-extensions + # Setting -mno-sse implies -mno-sse2, -mno-sse3, -mno-ssse3, -mno-sse41 and -mno-sse42 + # + .if ${MACHINE_CPUARCH} == "i386" +-CFLAGS.gcc+= -mno-align-long-strings -mpreferred-stack-boundary=2 ++CFLAGS.gcc+= -mpreferred-stack-boundary=2 + CFLAGS.clang+= -mno-aes -mno-avx + CFLAGS+= -mno-mmx -mno-sse -msoft-float + INLINE_LIMIT?= 8000 diff --git a/sys-freebsd/freebsd-sources/freebsd-sources-11.0.ebuild b/sys-freebsd/freebsd-sources/freebsd-sources-11.0.ebuild index bf4781c..c649b12 100644 --- a/sys-freebsd/freebsd-sources/freebsd-sources-11.0.ebuild +++ b/sys-freebsd/freebsd-sources/freebsd-sources-11.0.ebuild @@ -49,6 +49,7 @@ PATCHES=( "${FILESDIR}/${PN}-9.0-disable-optimization.patch" "${FILESDIR}/${PN}-8.0-subnet-route-pr40133.patch" "${FILESDIR}/${PN}-7.1-includes.patch" "${FILESDIR}/${PN}-9.0-sysctluint.patch" + "${FILESDIR}/${PN}-11.0-gentoo.patch" "${FILESDIR}/${PN}-11.0-gentoo-gcc.patch" "${FILESDIR}/${PN}-10.1-gcc48.patch" ) -- cgit v1.2.3-65-gdbad