On 29.03.2012 23:32, Wietse Venema wrote:
> Michael Tokarev:
>>                 SEARCHDIRS=$(${CC-gcc} -print-search-dirs 2>/dev/null |
>>                         sed -n '/^libraries: =/s/libraries: =//p' |
>>                         sed -e 's/:/\n/g' | xargs -n1 readlink -f |
>>                         grep -v 'gcc\|/[0-9.]\+$' | sort -u)
>>                 if [ -z "$SEARCHDIRS" ]; then
>>                         SEARCHDIRS="/usr/lib64 /lib64 /usr/lib /lib"
>>                 fi
> 
> You won't find this in the makedefs files from postfix.org mirrors.
> I suppose this was added by a Linux distribution maintainer.

Most likely by Debian maintainer, LaMont Jones.  Indeed, there's
no such code in official postfix.  But this snipped can be used
there just fine.

But I still think the best is to enable -lnsl -lresolv unconditionally,
as these libs are linked into postfix on linux for about 15 years
already anyway...

/mjt

Reply via email to