On Thu, Nov 02, 2023 at 09:35:47AM +0200, Jaco Lesch via Postfix-users wrote:

> > I would have tried instead:
> > 
> >       PKG_CONFIG_PATH=/usr/openssl/3/lib/64/pkgconfig \
> >       make makefiles dynamicmaps=yes shared=yes \
> >           openssl_path="/usr/openssl/3/bin/openssl" \
> >           CC="/usr/bin/gcc -m64" \
> >           CCARGS="-DUSE_DB -DUSE_TLS $(pkg-config --cflags libssl 
> > libcrypto)" \
> >           AUXLIBS="-ldb $(pkg-config --libs libssl libcrypto)" \
> > 
> > but, you may still also need an explicit "-R/usr/openssl/3/lib" option,
> > if that's not part of what "pkg-config" returns for "--libs".
> > 
> And Viktor your options for make compile 100%, no need for the explicit
> "-R/usr/openssl/3/lib" option. Have compiled both static and dynamic to
> verify. Regards

Given the output of your 'pkg-config' command, the "-R" options *are*
likely still needed.  They augment the *run-time* shared library search
path.  The code will compile without them, but it may not run, unless
that directly is on the system-wide search path (not expected).

-- 
    Viktor.
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to