On Fri, 29 Mar 2002, Olivier Chapuis wrote: > - if shared is enabled (and the system support shared lib) fvwm > will build and install a sharable library libfvwm.so-version and > fvwm2 and the modules will be dynamically linked to this library. > Of course the system must be able to perform the dynamic link > (e.g., for Linux either updating /etc/ld.so.conf and run ldconfig > or adding the directory "lib" directory in LD_LIBRARY_PATH after > the install).
ELF allows to embed this directory into the binary, so there's no need to touch either ld.so.conf or LD_LIBRARY_PATH [1]. This is achieved with "-rpath" option to the linker. According to Linux's ld(1), Solaris also supports this feature, and SunOS additionaly requires "-rpath-link". I've checked DEC OSF1 4.0 and IRIX 6.5, and both of them do support "-rpath". In OpenBSD this switch is called "-R", but at least in 2.7 "-rpath" is also accepted for compatibility with GNU ld. [1] Both of these decisions are not so handy: ld.so.conf is only root-writable, so that user wouldn't be able to install a custom shared copy of fvwm; LD_LIBRARY_PATH should be set (in fact, added to) in the user's login file, name of which isn't known (.profile | .bash_profile | .zshenv | .tcshrc | .whatever ...). _________________________________________ Dmitry Yu. Bolkhovityanov The Budker Institute of Nuclear Physics Novosibirsk, Russia -- Visit the official FVWM web page at <URL:http://www.fvwm.org/>. To unsubscribe from the list, send "unsubscribe fvwm-workers" in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]