2 ICONVDATA***********************************************************************\n"
3 mkdir
-p $build_dir/iconvdata
4 #-------------------------------------------------------------------------------
6 printf 'BUILDING LIBKSC HELPER MODULE\n'
7 $as $src_dir/iconvdata
/ksc5601.shared.s
-o $build_dir/iconvdata
/ksc5601.os
11 --dynamic-linker=/lib64
/ld-linux-x86-64.so
.2 \
26 -L$build_dir/mathvec \
27 -L$build_dir/support \
30 -rpath-link=$build_dir:$build_dir/math
:$build_dir/elf
:$build_dir/dlfcn
:$build_dir/nss
:$build_dir/nis
:$build_dir/rt
:$build_dir/resolv
:$build_dir/mathvec
:$build_dir/support
:$build_dir/crypt:$build_dir/nptl \
31 -o $build_dir/iconvdata
/libKSC.so \
32 -T $src_dir/shlib.lds \
33 $build_dir/csu
/abi-note.o \
35 $build_dir/iconvdata
/ksc5601.os \
39 $build_dir/libc_nonshared.a \
41 $build_dir/elf
/ld-linux-x86-64.so
.2 \
44 #-------------------------------------------------------------------------------
46 printf 'BUILDING LIBJIS HELPER MODULE\n'
47 $as $src_dir/iconvdata
/jis0201.shared.s
-o $build_dir/iconvdata
/jis0201.os
48 $as $src_dir/iconvdata
/jis0208.shared.s
-o $build_dir/iconvdata
/jis0208.os
49 $as $src_dir/iconvdata
/jis0212.shared.s
-o $build_dir/iconvdata
/jis0212.os
53 --dynamic-linker=/lib64
/ld-linux-x86-64.so
.2 \
68 -L$build_dir/mathvec \
69 -L$build_dir/support \
72 -rpath-link=$build_dir:$build_dir/math
:$build_dir/elf
:$build_dir/dlfcn
:$build_dir/nss
:$build_dir/nis
:$build_dir/rt
:$build_dir/resolv
:$build_dir/mathvec
:$build_dir/support
:$build_dir/crypt:$build_dir/nptl \
73 -o $build_dir/iconvdata
/libJIS.so \
74 -T $src_dir/shlib.lds \
75 $build_dir/csu
/abi-note.o \
77 $build_dir/iconvdata
/jis0201.os \
78 $build_dir/iconvdata
/jis0208.os \
79 $build_dir/iconvdata
/jis0212.os \
83 $build_dir/libc_nonshared.a \
85 $build_dir/elf
/ld-linux-x86-64.so
.2 \
88 #-------------------------------------------------------------------------------
90 printf 'BUILDING LIBGB HELPER MODULE\n'
91 $as $src_dir/iconvdata
/gb2312.shared.s
-o $build_dir/iconvdata
/gb2312.os
95 --dynamic-linker=/lib64
/ld-linux-x86-64.so
.2 \
109 -L$build_dir/resolv \
110 -L$build_dir/mathvec \
111 -L$build_dir/support \
114 -rpath-link=$build_dir:$build_dir/math
:$build_dir/elf
:$build_dir/dlfcn
:$build_dir/nss
:$build_dir/nis
:$build_dir/rt
:$build_dir/resolv
:$build_dir/mathvec
:$build_dir/support
:$build_dir/crypt:$build_dir/nptl \
115 -o $build_dir/iconvdata
/libGB.so \
116 -T $src_dir/shlib.lds \
117 $build_dir/csu
/abi-note.o \
119 $build_dir/iconvdata
/gb2312.os \
123 $build_dir/libc_nonshared.a \
125 $build_dir/elf
/ld-linux-x86-64.so
.2 \
128 #-------------------------------------------------------------------------------
130 printf 'BUILDING LIBCNS HELPER MODULE\n'
131 $as $src_dir/iconvdata
/cns11643l1.shared.s
-o $build_dir/iconvdata
/cns11643l1.os
132 $as $src_dir/iconvdata
/cns11643.shared.s
-o $build_dir/iconvdata
/cns11643.os
136 --dynamic-linker=/lib64
/ld-linux-x86-64.so
.2 \
150 -L$build_dir/resolv \
151 -L$build_dir/mathvec \
152 -L$build_dir/support \
155 -rpath-link=$build_dir:$build_dir/math
:$build_dir/elf
:$build_dir/dlfcn
:$build_dir/nss
:$build_dir/nis
:$build_dir/rt
:$build_dir/resolv
:$build_dir/mathvec
:$build_dir/support
:$build_dir/crypt:$build_dir/nptl \
156 -o $build_dir/iconvdata
/libCNS.so \
157 -T $src_dir/shlib.lds \
158 $build_dir/csu
/abi-note.o \
160 $build_dir/iconvdata
/cns11643l1.os \
161 $build_dir/iconvdata
/cns11643.os \
165 $build_dir/libc_nonshared.a \
167 $build_dir/elf
/ld-linux-x86-64.so
.2 \
170 #-------------------------------------------------------------------------------
171 # libISOIR165.so helper
172 printf 'BUILDING LIBISOIR165 HELPER MODULE\n'
173 $as $src_dir/iconvdata
/iso-ir-165.shared.s
-o $build_dir/iconvdata
/iso-ir-165.os
177 --dynamic-linker=/lib64
/ld-linux-x86-64.so
.2 \
183 -soname libISOIR165.so \
187 -L$build_dir/resolv \
188 -L$build_dir/mathvec \
189 -L$build_dir/support \
192 -rpath-link=$build_dir:$build_dir/math
:$build_dir/elf
:$build_dir/dlfcn
:$build_dir/nss
:$build_dir/nis
:$build_dir/rt
:$build_dir/resolv
:$build_dir/mathvec
:$build_dir/support
:$build_dir/crypt:$build_dir/nptl \
193 -o $build_dir/iconvdata
/libISOIR165.so \
194 -T $src_dir/shlib.lds \
195 $build_dir/csu
/abi-note.o \
197 $build_dir/iconvdata
/iso-ir-165.os \
201 $build_dir/libc_nonshared.a \
203 $build_dir/elf
/ld-linux-x86-64.so
.2 \
206 #-------------------------------------------------------------------------------
207 # libJISX0213.so helper
208 printf 'BUILDING LIBJISX0213 HELPER MODULE\n'
209 $as $src_dir/iconvdata
/jisx0213.shared.s
-o $build_dir/iconvdata
/jisx0213.os
213 --dynamic-linker=/lib64
/ld-linux-x86-64.so
.2 \
219 -soname libJISX0213.so \
223 -L$build_dir/resolv \
224 -L$build_dir/mathvec \
225 -L$build_dir/support \
228 -rpath-link=$build_dir:$build_dir/math
:$build_dir/elf
:$build_dir/dlfcn
:$build_dir/nss
:$build_dir/nis
:$build_dir/rt
:$build_dir/resolv
:$build_dir/mathvec
:$build_dir/support
:$build_dir/crypt:$build_dir/nptl \
229 -o $build_dir/iconvdata
/libJISX0213.so \
230 -T $src_dir/shlib.lds \
231 $build_dir/csu
/abi-note.o \
233 $build_dir/iconvdata
/jisx0213.os \
237 $build_dir/libc_nonshared.a \
239 $build_dir/elf
/ld-linux-x86-64.so
.2 \
491 for fn
in $fns_shared
493 printf "BUILDING $fn ICONV MODULE\n"
496 if test "$fn" = "euc-kr" -o "$fn" = "uhc" -o "$fn" = "johab" \
497 -o "$fn" = "iso-2022-kr"; then
498 helper_modules
="$build_dir/iconvdata/libKSC.so"
499 rpath_origin
='-rpath \$ORIGIN'
501 if test "$fn" = "euc-jp" -o "$fn" = "euc-jp-ms"; then
502 helper_modules
="$build_dir/iconvdata/libJIS.so"
503 rpath_origin
='-rpath \$ORIGIN'
505 if test "$fn" = "euc-cn"; then
506 helper_modules
="$build_dir/iconvdata/libGB.so"
507 rpath_origin
='-rpath \$ORIGIN'
509 if test "$fn" = "euc-tw"; then
510 helper_modules
="$build_dir/iconvdata/libCNS.so"
511 rpath_origin
='-rpath \$ORIGIN'
513 if test "$fn" = "iso-2022-jp"; then
515 $build_dir/iconvdata/libJIS.so \
516 $build_dir/iconvdata/libGB.so \
517 $build_dir/iconvdata/libCNS.so \
518 $build_dir/iconvdata/libKSC.so \
520 rpath_origin
='-rpath \$ORIGIN'
522 if test "$fn" = "iso-2022-cn"; then
524 $build_dir/iconvdata/libGB.so \
525 $build_dir/iconvdata/libCNS.so \
527 rpath_origin
='-rpath \$ORIGIN'
529 if test "$fn" = "iso-2022-cn-ext"; then
531 $build_dir/iconvdata/libGB.so \
532 $build_dir/iconvdata/libCNS.so \
533 $build_dir/iconvdata/libISOIR165.so \
535 rpath_origin
='-rpath \$ORIGIN'
537 if test "$fn" = "euc-jisx0213" -o "$fn" = "shift_jisx0213"; then
539 $build_dir/iconvdata/libJISX0213.so \
541 rpath_origin
='-rpath \$ORIGIN'
543 if test "$fn" = "iso-2022-jp-3"; then
545 $build_dir/iconvdata/libJIS.so \
546 $build_dir/iconvdata/libJISX0213.so \
548 rpath_origin
='-rpath \$ORIGIN'
550 $as $src_dir/iconvdata
/$fn.shared.s
-o $build_dir/iconvdata
/$fn.os
551 # keep the upper case
552 module_name
=$
(printf "$fn" |
tr '[a-z]' '[A-Z]').so
556 --dynamic-linker=/lib64
/ld-linux-x86-64.so
.2 \
559 --version-script=$src_dir/gconv.map \
571 -L$build_dir/resolv \
572 -L$build_dir/mathvec \
573 -L$build_dir/support \
576 -rpath-link=$build_dir:$build_dir/math
:$build_dir/elf
:$build_dir/dlfcn
:$build_dir/nss
:$build_dir/nis
:$build_dir/rt
:$build_dir/resolv
:$build_dir/mathvec
:$build_dir/support
:$build_dir/crypt:$build_dir/nptl \
577 -o "$build_dir/iconvdata/$module_name" \
578 -T $src_dir/shlib.lds \
579 $build_dir/csu
/abi-note.o \
581 $build_dir/iconvdata
/$fn.os \
586 $build_dir/libc_nonshared.a \
588 $build_dir/elf
/ld-linux-x86-64.so
.2 \