setting LIBDIR_IN_LDCONFIG fails if /lib is a symlink to /usr/lib

David Bremner david at tethera.net
Sun May 27 15:20:23 PDT 2018


Tomi Ollila <tomi.ollila at iki.fi> writes:

> we could try:
>
>     for path in $ldconfig_paths; do
>         if [ "$path" = "$libdir_expanded" ]; then
>             libdir_in_ldconfig=1
>             break
>         fi
>         if [ "$path" -ef "$libdir_expanded" ]; then
>             libdir_in_ldconfig=1
>             break
>         fi
>     done
>

That looks less horrible than my idea. How portable is it? I guess test
-ef is not POSIX.

d


More information about the notmuch mailing list