From ed6bb80fb61e9ac41c92d4e0e47f9b061df58c65 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Thu, 3 Dec 2020 11:50:43 +0100
Subject: [PATCH] Configure: Remove /opt/local from default search path.

/opt/local on MacOS X can contain libraries that conflict with and
are incompatible with the system libraries (eg libiconv.dylib).
This has a tendency to break stuff.

If you need /opt/local, please use --with-site-prefixes.

Fixes linking with MariaDB and MySQL.
---
 src/configure.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/configure.in b/src/configure.in
index 5f13501590..f661caa901 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -2576,7 +2576,7 @@ if test $ldflags_is_set = yes -a $cppflags_is_set = yes ; then :; else
     $with_root/usr/freeware $with_root/usr/pkg \
     `echo $with_root/opt/gnome* | sort -r` \
     `echo $with_root/usr/X* | sort -r` \
-    $with_root/opt/local $with_root/usr/pkg $with_root/opt/pkg \ 
+    $with_root/usr/pkg $with_root/opt/pkg \
     $with_root/usr/sfw $with_root/opt/sfw $with_root/opt/csw \
     $with_root/usr/ccs
   do
-- 
GitLab