1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32: ac_ext=java
33:
34:
35: objext=o
36:
37:
38: lt_simple_compile_test_code="class foo {}"
39:
40:
41: lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
42:
43:
44: case $host_os in
45: cygwin* | mingw*)
46:
47:
48:
49: if test "$with_gcc" != yes; then
50: with_gnu_ld=no
51: fi
52: ;;
53:
54: esac
55:
56: ld_shlibs=yes
57: if test "$with_gnu_ld" = yes; then
58:
59: wlarc='${wl}'
60:
61:
62: case $host_os in
63: aix3* | aix4* | aix5*)
64:
65: if test "$host_cpu" != ia64; then
66: ld_shlibs=no
67: cat <<EOF 1>&2
68:
69: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
70: *** to be unable to reliably create shared libraries on AIX.
71: *** Therefore, libtool is disabling shared libraries support. If you
72: *** really care for shared libraries, you may want to modify your PATH
73: *** so that a non-GNU linker is found, and then restart.
74:
75: EOF
76: fi
77: ;;
78:
79: amigaos*)
80: archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
81: hardcode_libdir_flag_spec='-L$libdir'
82: hardcode_minus_L=yes
83:
84:
85:
86:
87:
88:
89:
90: ld_shlibs=no
91: ;;
92:
93: beos*)
94: if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
95: allow_undefined_flag=unsupported
96:
97:
98: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
99: else
100: ld_shlibs=no
101: fi
102: ;;
103:
104: cygwin* | mingw*)
105:
106:
107: hardcode_libdir_flag_spec='-L$libdir'
108: allow_undefined_flag=unsupported
109: always_export_symbols=yes
110:
111: extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
112: sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //; p; }" -e d < $0 > $output_objdir/impgen.c~
113: test -f $output_objdir/impgen.exe || (cd $output_objdir && \
114: if test "x$BUILD_CC" != "x" ; then $BUILD_CC -o impgen impgen.c ; \
115: else $CC -o impgen impgen.c ; fi)~
116: $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
117:
118: old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
119:
120:
121:
122:
123: dll_entry=__cygwin_dll_entry@12
124: dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
125: case $host_os in
126: mingw*)
127:
128: dll_entry=_DllMainCRTStartup@12
129: dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
130: ;;
131: esac
132:
133:
134:
135: dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
136:
137:
138:
139: if test "x$lt_cv_need_dllmain" = "xyes"; then
140: ltdll_obj='$output_objdir/$soname-ltdll.'"$objext "
141: ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $0 > $output_objdir/$soname-ltdll.c~
142: test -f $output_objdir/$soname-ltdll.$objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
143: else
144: ltdll_obj=
145: ltdll_cmds=
146: fi
147:
148:
149:
150:
151:
152: export_symbols_cmds="$ltdll_cmds"'
153: $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
154: sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
155:
156:
157:
158:
159: archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
160: cp $export_symbols $output_objdir/$soname-def;
161: else
162: echo EXPORTS > $output_objdir/$soname-def;
163: _lt_hint=1;
164: cat $export_symbols | while read symbol; do
165: set dummy \$symbol;
166: case \[$]# in
167: 2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
168: *) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;;
169: esac;
170: _lt_hint=`expr 1 + \$_lt_hint`;
171: done;
172: fi~
173: '"$ltdll_cmds"'
174: $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
175: $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
176: $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
177: $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
178: $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
179: ;;
180:
181: netbsd* | knetbsd*-gnu)
182: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
183: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
184: wlarc=
185: else
186: archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
187: archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
188: fi
189: ;;
190:
191: solaris* | sysv5*)
192: if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
193: ld_shlibs=no
194: cat <<EOF 1>&2
195:
196: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
197: *** create shared libraries on Solaris systems. Therefore, libtool
198: *** is disabling shared libraries support. We urge you to upgrade GNU
199: *** binutils to release 2.9.1 or newer. Another option is to modify
200: *** your PATH or compiler configuration so that the native linker is
201: *** used, and then restart.
202:
203: EOF
204: elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
205: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
206: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
207: else
208: ld_shlibs=no
209: fi
210: ;;
211:
212: sunos4*)
213: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
214: wlarc=
215: hardcode_direct=yes
216: hardcode_shlibpath_var=no
217: ;;
218:
219: *)
220: if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
221: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
222: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
223: else
224: ld_shlibs=no
225: fi
226: ;;
227: esac
228:
229: if test "$ld_shlibs" = yes; then
230: runpath_var=LD_RUN_PATH
231: hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
232: export_dynamic_flag_spec='${wl}--export-dynamic'
233: case $host_os in
234: cygwin* | mingw*)
235:
236: whole_archive_flag_spec=
237: ;;
238: *)
239:
240: if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
241: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
242: else
243: whole_archive_flag_spec=
244: fi
245: ;;
246: esac
247: fi
248: else
249:
250: case $host_os in
251: aix3*)
252: allow_undefined_flag=unsupported
253: always_export_symbols=yes
254: archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
255:
256:
257: hardcode_minus_L=yes
258: if test "$with_gcc" = yes && test -z "$link_static_flag"; then
259:
260:
261: hardcode_direct=unsupported
262: fi
263: ;;
264:
265: aix4* | aix5*)
266: hardcode_direct=yes
267: hardcode_libdir_separator=':'
268: link_all_deplibs=yes
269: file_list_spec='${wl}-f,'
270:
271:
272:
273:
274:
275: if test "$with_gcc" = yes; then
276: case $host_os in aix4.[012]|aix4.[012].*)
277:
278:
279: collect2name=`${CC} -print-prog-name=collect2`
280: if test -f "$collect2name" && \
281: strings "$collect2name" | grep resolve_lib_name >/dev/null
282: then
283:
284: hardcode_direct=yes
285: else
286:
287: hardcode_direct=unsupported
288:
289:
290:
291: hardcode_minus_L=yes
292: hardcode_libdir_flag_spec='-L$libdir'
293: hardcode_libdir_separator=
294: fi
295: esac
296: shared_flag='-shared'
297: else
298:
299: if test "$host_cpu" = ia64; then
300: shared_flag='${wl}-G'
301: else
302: shared_flag='${wl}-bM:SRE'
303: fi
304: fi
305:
306: if test "$host_cpu" = ia64; then
307:
308:
309: aix_use_runtimelinking=no
310: if test $with_gnu_ld = no; then
311: exp_sym_flag='-Bexport'
312: no_entry_flag=""
313: fi
314: else
315:
316:
317: aix_use_runtimelinking=no
318: for ld_flag in $LDFLAGS; do
319: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
320: aix_use_runtimelinking=yes
321: break
322: fi
323: done
324: exp_sym_flag='-bexport'
325: no_entry_flag='-bnoentry'
326: fi
327:
328: always_export_symbols=yes
329: if test "$aix_use_runtimelinking" = yes; then
330:
331:
332: allow_undefined_flag=' ${wl}-berok'
333: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
334: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
335: else
336: if test "$host_cpu" = ia64; then
337: if test $with_gnu_ld = no; then
338: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
339: allow_undefined_flag="-z nodefs"
340: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
341: fi
342: else
343: allow_undefined_flag=' ${wl}-berok'
344:
345: always_export_symbols=yes
346:
347: whole_archive_flag_spec=' '
348: build_libtool_need_lc=yes
349: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
350:
351: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
352: fi
353: fi
354: ;;
355:
356: amigaos*)
357: archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
358: hardcode_libdir_flag_spec='-L$libdir'
359: hardcode_minus_L=yes
360:
361: ld_shlibs=no
362: ;;
363:
364: cygwin* | mingw*)
365:
366:
367:
368:
369: hardcode_libdir_flag_spec=' '
370: allow_undefined_flag=unsupported
371:
372: libext=lib
373:
374: archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
375:
376: old_archive_from_new_cmds='true'
377:
378: old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
379: fix_srcfile_path='`cygpath -w "$srcfile"`'
380: ;;
381:
382: darwin* | rhapsody*)
383: case "$host_os" in
384: rhapsody* | darwin1.[[012]])
385: allow_undefined_flag='-undefined suppress'
386: ;;
387: *)
388: if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
389: allow_undefined_flag='-flat_namespace -undefined suppress'
390: else
391: case ${MACOSX_DEPLOYMENT_TARGET} in
392: 10.[[012]])
393: allow_undefined_flag='-flat_namespace -undefined suppress'
394: ;;
395: 10.*)
396: allow_undefined_flag='-undefined dynamic_lookup'
397: ;;
398: esac
399: fi
400: ;;
401: esac
402:
403: case $host_os in
404: darwin[1-6]*)
405: can_build_shared=no
406: ;;
407: darwin7*)
408: can_build_shared=yes
409: ;;
410: esac
411: output_verbose_link_cmd='echo'
412: archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
413: module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
414:
415: archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
416: module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
417: hardcode_direct=no
418: hardcode_automatic=yes
419: hardcode_shlibpath_var=unsupported
420: whole_archive_flag_spec='-all_load $convenience'
421: link_all_deplibs=yes
422: ;;
423:
424:
425: freebsd1*)
426: ld_shlibs=no
427: ;;
428:
429:
430:
431:
432:
433: freebsd2.2*)
434: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
435: hardcode_libdir_flag_spec='-R$libdir'
436: hardcode_direct=yes
437: hardcode_shlibpath_var=no
438: ;;
439:
440:
441: freebsd2*)
442: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
443: hardcode_direct=yes
444: hardcode_minus_L=yes
445: hardcode_shlibpath_var=no
446: ;;
447:
448:
449: freebsd* | kfreebsd*-gnu)
450: archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
451: hardcode_libdir_flag_spec='-R$libdir'
452: hardcode_direct=yes
453: hardcode_shlibpath_var=no
454: ;;
455:
456: hpux9* | hpux10* | hpux11*)
457: case $host_os in
458: hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
459: *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
460: esac
461: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
462: hardcode_libdir_separator=:
463: hardcode_direct=yes
464: hardcode_minus_L=yes
465:
466: export_dynamic_flag_spec='${wl}-E'
467: ;;
468:
469: irix5* | irix6*)
470: if test "$with_gcc" = yes; then
471: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
472: else
473: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
474: fi
475: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
476: hardcode_libdir_separator=:
477: link_all_deplibs=yes
478: ;;
479:
480: netbsd* | knetbsd*-gnu)
481: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
482: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
483: else
484: archive_cmds='$LD -shared -nodefaultlibs -o $lib $libobjs $deplibs $linker_flags'
485: fi
486: hardcode_libdir_flag_spec='${wl}-R$libdir'
487: hardcode_direct=yes
488: hardcode_shlibpath_var=no
489: ;;
490:
491: openbsd*)
492: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
493: hardcode_libdir_flag_spec='-R$libdir'
494: hardcode_direct=yes
495: hardcode_shlibpath_var=no
496: ;;
497:
498: os2*)
499: hardcode_libdir_flag_spec='-L$libdir'
500: hardcode_minus_L=yes
501: allow_undefined_flag=unsupported
502: archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
503: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
504: ;;
505:
506: osf3*)
507: if test "$with_gcc" = yes; then
508: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
509: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
510: else
511: allow_undefined_flag=' -expect_unresolved \*'
512: archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
513: fi
514: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
515: hardcode_libdir_separator=:
516: ;;
517:
518: osf4* | osf5*)
519: if test "$with_gcc" = yes; then
520: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
521: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
522: else
523: allow_undefined_flag=' -expect_unresolved \*'
524: archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
525: fi
526: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
527: hardcode_libdir_separator=:
528: ;;
529:
530: sco3.2v5*)
531: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
532: hardcode_shlibpath_var=no
533: runpath_var=LD_RUN_PATH
534: hardcode_runpath_var=yes
535: ;;
536:
537: solaris*)
538: no_undefined_flag=' ${wl}-z ${wl}defs'
539: archive_cmds='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
540: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
541: $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
542:
543:
544:
545:
546: output_verbose_link_cmds="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
547:
548: hardcode_libdir_flag_spec='${wl}-R $wl$libdir'
549: hardcode_shlibpath_var=no
550: case $host_os in
551: solaris2.[0-5] | solaris2.[0-5].*) ;;
552: *)
553: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
554: esac
555: link_all_deplibs=yes
556: ;;
557:
558: sunos4*)
559: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
560: hardcode_libdir_flag_spec='-L$libdir'
561: hardcode_direct=yes
562: hardcode_minus_L=yes
563: hardcode_shlibpath_var=no
564: ;;
565:
566: sysv4)
567: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
568: runpath_var='LD_RUN_PATH'
569: hardcode_shlibpath_var=no
570: hardcode_direct=no
571: ;;
572:
573: sysv4.3*)
574: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
575: hardcode_shlibpath_var=no
576: export_dynamic_flag_spec='-Bexport'
577: ;;
578:
579: sysv5*)
580: no_undefined_flag=' -z text'
581:
582:
583: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
584: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
585: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
586: hardcode_libdir_flag_spec=
587: hardcode_shlibpath_var=no
588: runpath_var='LD_RUN_PATH'
589: ;;
590:
591: uts4*)
592: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
593: hardcode_libdir_flag_spec='-L$libdir'
594: hardcode_shlibpath_var=no
595: ;;