eclass/freebsd.eclass: Move a special 32bit CFLAGS from profile.
authorYuta Satoh <nigoro.dev@gmail.com>
Tue, 4 Oct 2016 11:06:21 +0000 (20:06 +0900)
committerAlexis Ballier <aballier@gentoo.org>
Wed, 5 Oct 2016 12:46:44 +0000 (14:46 +0200)
https://bugs.gentoo.org/show_bug.cgi?id=596044

eclass/freebsd.eclass

index c5d946417de90a7022f552392a0e0d4928fcbf75..cb03cf63a31a3a82139a30685e6bfce5cfa6bef8 100644 (file)
@@ -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() {