diff options
author | Karel Zak | 2008-03-12 14:07:28 +0100 |
---|---|---|
committer | Karel Zak | 2008-03-12 14:07:28 +0100 |
commit | 18ecd7d0a12952600a76227f5d81a1b900e05f8f (patch) | |
tree | 7180969f8680cc2c0e83e25c9b67aaf8db535be3 /README | |
parent | mount: remove useless if-before-my_free, define my_free as a macro (diff) | |
download | kernel-qcow2-util-linux-18ecd7d0a12952600a76227f5d81a1b900e05f8f.tar.gz kernel-qcow2-util-linux-18ecd7d0a12952600a76227f5d81a1b900e05f8f.tar.xz kernel-qcow2-util-linux-18ecd7d0a12952600a76227f5d81a1b900e05f8f.zip |
docs: add note about static linking
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'README')
-rw-r--r-- | README | 32 |
1 files changed, 30 insertions, 2 deletions
@@ -23,9 +23,9 @@ DOWNLOAD: SOURCE CODE: Web interface: - http://git.kernel.org/?p=utils/util-linux-ng/util-linux-ng.git + http://git.kernel.org/?p=utils/util-linux-ng/util-linux-ng.git Checkout: - git clone git://git.kernel.org/pub/scm/utils/util-linux-ng/util-linux-ng.git util-linux-ng + git clone git://git.kernel.org/pub/scm/utils/util-linux-ng/util-linux-ng.git util-linux-ng NLS (PO TRANSLATIONS): @@ -68,3 +68,31 @@ COMPILATION: This feature is currently supported for chfn, chsh, newgrp, write, mount, and umount. + + +STATIC LINKING: + + Use --enable-static-programs[=LIST] configure option when you want to use + statically linked programs. + + Note, mount(8) uses get{pw,gr}nam() and getpwuid() functions for + translation from username and groupname to UID and GID. These functions + could be implemented by dynamically loaded independent modules (NSS) in + your libc (e.g. glibc). These modules are not statically linked to mount(8) + and mount.static is still using dlopen() like dynamically linked version. + + The translation won't be work in environment where is not installed the + NSS modules. + + For example normal system (NSS modules are available): + + # ./mount.static -v -f -n -ouid=kzak /mnt/foo + LABEL=/mnt/foo on /mnt/foo type vfat (rw,uid=500) + ^^^^^^^ + and without NSS modules: + + # chroot . ./mount.static -v -f -n -ouid=kzak /mnt/win + LABEL=/mnt/win on /mnt/win type vfat (rw,uid=kzak) + ^^^^^^^^ + + |