localedef creates a temporary C source file that represents the locale's data. localedef then calls the C compiler to compile this C source file into a shared
object.
If the -m ilp32 option is specified, localedef calls the C compiler for generating 32-bit objects and generates a 32-bit locale object. If the -m lp64 option is specified, localedef calls the C compiler for generating 64-bit objects and generates a 64-bit locale object.
If the -m option is not specified, localedef calls the C compiler for generating 32-bit objects and generates a 32-bit locale object. If no other options than -c, -f, and -i options are specified and if the system running localedef supports the 64-bit environment, localedef additionally
calls the C compiler for generating 64-bit objects and generates a 64-bit locale object.
If no option to the C compiler is explicitly specified using the -W, -C, or -L options, localedef calls the C compiler with appropriate
C compiler options to generate a locale object or objects.
If the -m ilp32 option is specified, localedef generates a 32-bit locale object named:
localename.so.version_number
If the -m lp64 option is specified, localedef generates a 64-bit locale object named:
localename.so.version_number
If the -m option is not specified, localedef generates a 32-bit locale object named:
localename.so.version_number
and, if appropriate, generates a 64-bit locale object named:
64-bit_architecture_name/localename.so.version_number
The shared object for the 32-bit environment must be moved to:
/usr/lib/locale/localename/localename.so.version_number
The shared object for the 64-bit environment on SPARC must be moved to:
/usr/lib/locale/localename/sparcv9/localename.so.version_number
localedef also generates a text file named localename that is used for information only.
|