Wietse Venema: > LuKreme: > > On 10 Oct 2014, at 18:42 , Wietse Venema <wie...@porcupine.org> wrote: > > > A few minutes ago I updated the makedefs script so that it documents > > > the "make makefiles" options in a comment at the beginning of the > > > file makedefs.out which is usually installed in $config_directory. > > > > Is this something that will help me reconstruct the make flags I > > used when I compiled 2.10 or just a useful feature for the future? > > Look for the EXPORT line. This has AUXLIBS and CCARGS, which you > would use as > > $ make makefiles CCARGS='stuff' AUXLIBS='stuff'
For example, this Postfix 2.10 makedefs.out file contains (lines broken for readability): EXPORT = \ AUXLIBS='-lssl -lcrypto -L/usr/local/lib -lsasl2 -L/usr/local/lib -lcdb -L/usr/local/lib -R/usr/local/lib -lldap -L/usr/local/lib -R/usr/local/lib -llber -L/usr/local/lib -llmdb -L/usr/local/lib -lpq -L/usr/local/lib -lsqlite3 -L/usr/local/lib -Wl,-R/usr/local/lib -lpcre' \ CCARGS='-I. -I../../include -DUSE_TLS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/local/include/sasl -DHAS_CDB -I/usr/local/include -DHAS_SQLITE -DHAS_LMDB -DHAS_LDAP -DHAS_PGSQL -I/usr/local/include/pgsql -DHAS_MYSQL -I/usr/local/include/mysql -DHAS_PCRE -I/usr/local/include' \ OPT='' \ DEBUG='-g' The pcre-related parts were generated when "make makefiles" ran, but there is no need to remove them before using CCARGS and AUXLIBS in "$ make makefiles CCARGS='stuff' AUXLIBS='stuff' OPT=xx DEBUG=yy". The OPT='' and DEBUG='-g' are typical of a development environment. Your needs may differ. Wietse