In the lighttpd build, the libdir is set so that lighttpd uses a subdirectory: libdir = $(prefix)/lib/foo It works for the 32-bit build. When BUILD64 is set to 1, libdir is apparently reset to /opt/csw/lib/sparcv9: /opt/csw/lib/sparcv9/liblightcomp.so What's the proper way of handling custom libdir for 64-bit builds? Maciej