# Exim: OS-specific make file for FreeBSD
-# There's no setting of CFLAGS here, to allow the system default
-# for "make" to be the default.
+#
+# Copyright (c) The Exim Maintainers 2020 - 2023
+# SPDX-License-Identifier: GPL-2.0-or-later
CHOWN_COMMAND=/usr/sbin/chown
-STRIP_COMMAND=/usr/bin/strip
+#STRIP_COMMAND=/usr/bin/strip
CHMOD_COMMAND=/bin/chmod
-CFLAGS += -DTAINT_CHECK_SLOW
# FreeBSD Ports no longer insert compatibility symlinks into /usr/bin for
# scripting languages which traditionally have had them.
HAVE_SA_LEN=YES
# crypt() is in a separate library
-LIBS=-lcrypt -lm -lutil
+LIBS=-lcrypt -lm -lutil -lexecinfo
# Dynamically loaded modules need to be built with -fPIC
CFLAGS_DYNAMIC=-shared -rdynamic -fPIC
+# Partial-linking needs -nostdlib
+LDFLAGS_PARTIAL=-nostdlib
+
# FreeBSD always ships with Berkeley DB
USE_DB=yes