Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jul 2019 19:15:18 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r507586 - head/databases/p5-DBD-mysql
Message-ID:  <201907291915.x6TJFIwx047920@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Mon Jul 29 19:15:18 2019
New Revision: 507586
URL: https://svnweb.freebsd.org/changeset/ports/507586

Log:
  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)

Modified:
  head/databases/p5-DBD-mysql/Makefile

Modified: head/databases/p5-DBD-mysql/Makefile
==============================================================================
--- head/databases/p5-DBD-mysql/Makefile	Mon Jul 29 18:41:44 2019	(r507585)
+++ head/databases/p5-DBD-mysql/Makefile	Mon Jul 29 19:15:18 2019	(r507586)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201907291915.x6TJFIwx047920>