On 2/24/2023 12:27 AM, James Brown wrote:
Sorry if this is a bit of a basic question, but I’m trying to compile from
source on macOS 13.21.1 but the makefile has lines commented out.
I’m trying:
make -f Makefile.init makefiles \
CCARGS='-DUSE_TLS -DUSE_SASL_AUTH \
-DDEF_SERVER_SASL_TYPE=\"dovecot\" \
-DDEF_COMMAND_DIR=\"/usr/local/sbin\" \
-DDEF_CONFIG_DIR=\"/usr/local/etc/postfix\" \
-DDEF_DAEMON_DIR=\"/usr/local/libexec/postfix\" \
-DHAS_PCRE -I/opt/homebrew//include \
-DHAS_SSL -I/opt/homebrew/Cellar/openssl@3/3.0.8/include/ \
-DHAS_MYSQL -I/opt/homebrew/Cellar/mysql/8.0.32/include/' \
AUXLIBS_MYSQL='-I/opt/homebrew/Cellar/mysql/8.0.32/include/mysql -lmysqlclient
-lz -lm'\
AUXLIBS='-L/usr/local/lib -lpcre -L/opt/homebrew/opt/openssl@3/lib -lssl
-lcrypto' sendmail_path=/usr/local/sbin/sendmail
newaliases_path=/usr/local/bin/newaliases mailq_path=/usr/local/bin/mailq
The makefile that gets created starts =:
# Do not edit -- this file documents how Postfix was built for your machine.
#----------------------------------------------------------------
# Start of summary of user-configurable 'make makefiles' options.
# CCARGS=-DUSE_TLS -DUSE_SASL_AUTH \
-DDEF_SERVER_SASL_TYPE=\"dovecot\" \
-DDEF_COMMAND_DIR=\"/usr/local/sbin\" \
-DDEF_CONFIG_DIR=\"/usr/local/etc/postfix\" \
-DDEF_DAEMON_DIR=\"/usr/local/libexec/postfix\" \
-DHAS_PCRE -I/opt/homebrew//include \
-DHAS_SSL -I/opt/homebrew/Cellar/openssl@3/3.0.8/include/ \
-DHAS_MYSQL -I/opt/homebrew/Cellar/mysql/8.0.32/include/
# AUXLIBS=
# AUXLIBS_MYSQL=-I/opt/homebrew/Cellar/mysql/8.0.32/include/mysql -lmysqlclient
-lz -lmAUXLIBS=-L/usr/local/lib -lpcre -L/opt/homebrew/opt/openssl@3/lib -lssl
-lcrypto
# shared=
# dynamicmaps=
# pie=
# mailq_path=/usr/local/bin/mailq
# newaliases_path=/usr/local/bin/newaliases
# sendmail_path=/usr/local/sbin/sendmail
# End of summary of user-configurable 'make makefiles' options.
#--------------------------------------------------------------
# System-dependent settings and compiler/linker overrides.
I’m sure it something simple, but why are the CCARGS, AUXLIBS and AUXLIBS_MYSQL
being commented out?
Are you sure you aren't simply looking at the "summary" of your
selections? That's what it says right before the stuff that's commented
out. Do these settings get encoded for real elsewhere in the Makefile?