Skip to content

Commit 24d67aa

Browse files
committed
MDEV-34825 FreeBSD fails to build under clang natively (postfix)
10.5 added contents of cmake/os/FreeBSD.cmake in c991efd. in the merge to 10.11, d002b1f removed this file. In the past FreeBSD.cmake was removed in 5369df7 in the 10.11 branch as no remaining code was needed. The combination of this and the merge lead to the the file being removed. My assumption is this was a non-stable branch at the time. The purpose of this patch is clang doesn't have /usr/local/lib in the path. As such there are various depedency linkages that will fail. For example pcre and libfmt.
1 parent ccb4bc7 commit 24d67aa

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

cmake/os/FreeBSD.cmake

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Copyright (C) 2024 MariaDB Foundation
2+
#
3+
# This program is free software; you can redistribute it and/or modify
4+
# it under the terms of the GNU General Public License as published by
5+
# the Free Software Foundation; version 2 of the License.
6+
#
7+
# This program is distributed in the hope that it will be useful,
8+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
9+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10+
# GNU General Public License for more details.
11+
#
12+
# You should have received a copy of the GNU General Public License
13+
# along with this program; if not, write to the Free Software
14+
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA
15+
16+
# This file includes FreeBSD specific options and quirks, related to system checks
17+
18+
# For all userspace dependencies
19+
LINK_DIRECTORIES(/usr/local/lib)

0 commit comments

Comments
 (0)