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