> On Mar 5, 2017, at 2:34 PM, Earl Killian <[email protected]> wrote:
> 
> make tidy
> make makefiles \

You might also consider:

        shared=yes dynamicmaps=yes

>    CCARGS='-DDEF_CONFIG_DIR=/usr/local/etc/postfix -DUSE_TLS 
> -I/usr/local/ssl/include -DNO_NIS -DNO_NISPLUS' \

Since you're using "config_param=value" for the various paths, don't use 
"-DDEF_CONFIG_DIR",
that's the source of the conflict.

>    AUXLIBS='/usr/local/ssl/lib/libssl.a /usr/local/ssl/lib/libcrypto.a' \

More typically one uses shared libraries for OpenSSL:

        -L/usr/local/ssl/lib -Wl,-rpath,/usr/local/ssl/lib -lssl -lcrypto


>    config_directory=/usr/local/etc/postfix \
>    meta_directory=/usr/local/etc/postfix \
>    command_directory=/usr/local/sbin \
>    daemon_directory=/usr/local/libexec/postfix \
>    mailq_path=/usr/local/bin/mailq \
>    newaliases_path=/usr/local/bin/newaliases \
>    openssl_path=/usr/local/ssl/bin/openssl \
>    sendmail_path=/usr/local/sbin/sendmail \
>    shlib_directory=/usr/local/lib/postfix

For test builds with MacOS/X I use:

make -f Makefile.init shared=yes dynamicmaps=yes \
        shlib_directory=/var/tmp/postfix/lib/MAIL_VERSION \
        config_directory=/var/tmp/postfix/etc \
        queue_directory=/var/tmp/postfix/spool \
        data_directory=/var/tmp/postfix/data \
        command_directory=/var/tmp/postfix/sbin \
        daemon_directory=/var/tmp/postfix/libexec \
        html_directory=/var/tmp/postfix/html \
        manpage_directory=/var/tmp/postfix/man \
        readme_directory=/var/tmp/postfix/readme \
        sendmail_path=/var/tmp/postfix/sbin/sendmail \
        newaliases_path=/var/tmp/postfix/sbin/newaliases \
        mailq_path=/var/tmp/postfix/sbin/mailq \
        'CCARGS= -I/opt/openssl/1.1.0/include -DUSE_TLS -DHAS_PCRE 
-I/usr/local/include' \
        'AUXLIBS= -L/opt/openssl/1.1.0/lib -lssl -lcrypto -L/usr/local/lib 
-ldb' \
        'AUXLIBS_PCRE=-L/usr/local/lib -lpcre' \
        'OPT=-O -g' \
        makefiles

This has no RPATH-related flags, since those are not needed on MacOS/X, but 
would be
needed for Linux...  The command-line is actually in part machine-generated, 
using
Bash arrays:

opts=(
    config_directory=$DEST/etc
    queue_directory=$DEST/spool
    data_directory=$DEST/data
    command_directory=$DEST/sbin
    daemon_directory=$DEST/libexec
    html_directory=$DEST/html
    manpage_directory=$DEST/man
    readme_directory=$DEST/readme
    sendmail_path=$DEST/sbin/sendmail
    newaliases_path=$DEST/sbin/newaliases
    mailq_path=$DEST/sbin/mailq
)

make -f Makefile.init shared=yes dynamicmaps=yes 
"shlib_directory=$DEST/lib/MAIL_VERSION" "${opts[@]}" ...

-- 
        Viktor.

Reply via email to