Created attachment 206133 [details] patch --libs needs -L/usr/local/lib/gcc9 to find libatomic (needed since MySQL 5.7) on GCC architectures. I'm pretty sure the sed part can be written better, but I don't know what's the best way possible.
Comment on attachment 206133 [details] patch approved.
A commit references this bug: Author: pkubaj Date: Mon Jul 29 19:15:18 UTC 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) Changes: head/databases/p5-DBD-mysql/Makefile