From 670fcd21150ece05c2005ad24b797226ae23fb3a Mon Sep 17 00:00:00 2001 From: Piotr Kubaj Date: Mon, 29 Jul 2019 19:15:18 +0000 Subject: [PATCH] databases/p5-DBD-mysql: fix build on GCC architectures --libs needs -L/usr/local/lib/gcc9 to find libatomic (needed since MySQL 5.7) on GCC architectures. PR: 239505 Approved by: mat (mentor, maintainer) --- databases/p5-DBD-mysql/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/databases/p5-DBD-mysql/Makefile b/databases/p5-DBD-mysql/Makefile index 81d22214d494..c58f5a8851eb 100644 --- a/databases/p5-DBD-mysql/Makefile +++ b/databases/p5-DBD-mysql/Makefile @@ -22,7 +22,9 @@ TEST_DEPENDS= p5-Test-Deep>=0:devel/p5-Test-Deep CONFLICTS_INSTALL?= p5-DBD-mysql[45][0-9]-[0-9]* -USES= mysql perl5 +USES= compiler:c11 mysql perl5 +CONFIGURE_ARGS= ${CONFIGURE_ARGS_${CHOSEN_COMPILER_TYPE}} +CONFIGURE_ARGS_gcc= --libs="-L${PREFIX}/lib/gcc${GCC_DEFAULT} `mysql_config --libs | ${SED} 's/-pthread //'`" USE_PERL5= configure OPTIONS_DEFINE= SSL