postfix-users March 2012 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: Re: Linux.3 in makedefs & Ubuntu12

Re: Linux.3 in makedefs & Ubuntu12

From: Michael Tokarev <mjt_at_nospam>
Date: Thu Mar 29 2012 - 19:44:55 GMT
To: Postfix users <postfix-users@postfix.org>

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