app-crypt/libb2: fix check to respect CFLAGS, thanks jer
authorFabian Groffen <grobian@gentoo.org>
Wed, 5 Jun 2019 09:30:47 +0000 (11:30 +0200)
committerFabian Groffen <grobian@gentoo.org>
Wed, 5 Jun 2019 09:30:57 +0000 (11:30 +0200)
Closes: https://bugs.gentoo.org/687412
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Package-Manager: Portage-2.3.66, Repoman-2.3.11

app-crypt/libb2/libb2-0.98.1.ebuild

index 1f7105ca4785f52d1597fa75a705cb2ae7c49d89..440bcd1bb91648292f1cbab767695318935b6245 100644 (file)
@@ -45,9 +45,18 @@ src_configure() {
                $(use_enable openmp)
 }
 
-src_compile() {
+do_make() {
        # respect our CFLAGS when native-cflags is not in effect
-       emake $(use native-cflags && echo no)CFLAGS="${CFLAGS}"
+       local openmp=$(use openmp && echo -fopenmp)
+       emake $(use native-cflags && echo no)CFLAGS="${CFLAGS} ${openmp}" "$@"
+}
+
+src_compile() {
+       do_make
+}
+
+src_test() {
+       do_make check
 }
 
 src_install() {