I found that for some (maybe most) systems the LD_LIBRARY_PATH is not needed if libcod is compiled on said system, as the gcc/clang linker will automatically find the correct files and remove the need for LD_LIBRARY_PATH. Furthermore, you should be able to put the remaining two lines into a single one, removing the needs for any export. This is also why i would advise anyone to just locally compile a libcod version.
My startup script:
Code:LD_PRELOAD="path_to_libcod.so" path_to_cod2_lnxded +set dedicated "2"