diff --git a/en_US.ISO8859-1/books/porters-handbook/book.sgml b/en_US.ISO8859-1/books/porters-handbook/book.sgml index 0ec480c992..68ec2bb304 100644 --- a/en_US.ISO8859-1/books/porters-handbook/book.sgml +++ b/en_US.ISO8859-1/books/porters-handbook/book.sgml @@ -3869,6 +3869,17 @@ PORTVERSION= 1.0 INSTALLS_SHLIB= yes LDCONFIG_DIRS= %%PREFIX%%/lib/foo %%PREFIX%%/lib/bar + Remember that non-standard directories will not be passed to + &man.ldconfig.8; on (re-)boot! If any port really + needs this to work, install a startup-script as + x11/kdelibs3 does. Please + double-check, often this is not necessary at all or can be avoided + through -rpath or setting LD_RUN_PATH + during linking (see lang/moscow_ml + for an example), or through a shell-wrapper which sets + LD_LIBRARY_PATH before invoking the binary, like + www/mozilla does. + Note that content of LDCONFIG_DIRS is passed through &man.sed.1; just like the rest of pkg-plist, so PLIST_SUB substitutions also apply here. It is