I was able to fix this.  It would appear that the rpath was not being picked
up for some reason in the AUXLIBS via the -R flag.  I was able to overcome
this by setting the environment variable LD_RUN_PATH=/opt/lib

On Thu, May 20, 2010 at 2:25 PM, Patrick Baker <patricksba...@gmail.com>wrote:

> Hello,
>
> I'm attempting to build postfix for a boxed NAS solution that uses a
> ramdisk for the underlying OS.  When I build postfix the libraries are found
> due to my build specification below.  However, once the binary is built and
> executed there are library errors because the binary is not looking in
> /opt/lib.  Is there a way to statically point the postfix binaries built to
> /opt/lib so that its not required to make a change to the ld.so.conf?  Its
> interesting to point out that on this system the ld.so.conf is overwritten
> at each boot due to the ramdisk.
>
> make makefiles CCARGS="-I/opt/include/openssl -I/opt/include
> -I/opt/include/sasl \
> -DUSE_TLS \
> -DHAS_DB \
> -DHAS_PCRE \
> -DUSE_SASL_AUTH \
> -DUSE_CYRUS_SASL" \
> AUXLIBS="-L/opt/lib -R/opt/lib -lssl -lcrypto -ldb -lpcre -lsasl2 -L/lib
> -lpthread"
>
> With regards,
>
> Patrick
>

Reply via email to