commit:     1c778c79ea7e1574ac226a1e57188936b3ae62a3
Author:     Yuta Satoh <nigoro.dev <AT> gmail <DOT> com>
AuthorDate: Tue Oct  4 11:06:21 2016 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Wed Oct  5 12:46:44 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c778c79

eclass/freebsd.eclass: Move a special 32bit CFLAGS from profile.

https://bugs.gentoo.org/show_bug.cgi?id=596044

 eclass/freebsd.eclass | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/eclass/freebsd.eclass b/eclass/freebsd.eclass
index c5d9464..cb03cf6 100644
--- a/eclass/freebsd.eclass
+++ b/eclass/freebsd.eclass
@@ -206,6 +206,9 @@ freebsd_src_unpack() {
                        export CPP="${WORKDIR}/workaround_clang-cpp/clang-cpp"
                fi
        fi
+
+       # Add a special CFLAGS required for multilib support.
+       use amd64-fbsd && export CFLAGS_x86_fbsd="${CFLAGS_x86_fbsd} 
-DCOMPAT_32BIT -B/usr/lib32 -L/usr/lib32"
 }
 
 freebsd_src_compile() {

Reply via email to