Changeset 605 for branches/GNU/src/binutils/ltcf-c.sh
- Timestamp:
- Aug 16, 2003, 6:41:03 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/binutils/ltcf-c.sh
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r604 r605 3 3 # ltcf-c.sh - Create a C compiler specific configuration 4 4 # 5 # Copyright (C) 1996-2000 Free Software Foundation, Inc.5 # Copyright (C) 1996-2000, 2001 Free Software Foundation, Inc. 6 6 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 7 7 # … … 39 39 40 40 ## Linker Characteristics 41 case "$host_os"in41 case $host_os in 42 42 cygwin* | mingw*) 43 43 # FIXME: the MSVC++ port hasn't been tested in a loooong time … … 57 57 58 58 # See if GNU ld supports shared libraries. 59 case "$host_os" in 60 aix3* | aix4*) 61 # On AIX, the GNU linker is very broken 62 ld_shlibs=no 63 cat <<EOF 1>&2 59 case $host_os in 60 aix3* | aix4* | aix5*) 61 # On AIX/PPC, the GNU linker is very broken 62 if test "$host_cpu" != ia64; then 63 ld_shlibs=no 64 cat <<EOF 1>&2 64 65 65 66 *** Warning: the GNU linker, at least up to release 2.9.1, is reported … … 70 71 71 72 EOF 73 fi 72 74 ;; 73 75 … … 107 109 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //; p; }" -e d < $0 > $output_objdir/impgen.c~ 108 110 test -f $output_objdir/impgen.exe || (cd $output_objdir && \ 109 if test "x$ HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \111 if test "x$BUILD_CC" != "x" ; then $BUILD_CC -o impgen impgen.c ; \ 110 112 else $CC -o impgen impgen.c ; fi)~ 111 $output_objdir/impgen $dir/$so name> $output_objdir/$soname-def'113 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' 112 114 113 115 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' … … 118 120 dll_entry=__cygwin_dll_entry@12 119 121 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ 120 case "$host_os"in122 case $host_os in 121 123 mingw*) 122 124 # mingw values … … 149 151 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' 150 152 153 # If the export-symbols file already is a .def file (1st line 154 # is EXPORTS), use it as is. 151 155 # If DATA tags from a recent dlltool are present, honour them! 152 archive_expsym_cmds='echo EXPORTS > $output_objdir/$soname-def~ 153 _lt_hint=1; 154 cat $export_symbols | while read symbol; do 155 set dummy \$symbol; 156 case \$# in 157 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; 158 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; 159 esac; 160 _lt_hint=`expr 1 + \$_lt_hint`; 161 done~ 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~ 162 170 '"$ltdll_cmds"' 163 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $ lib'$ltdll_obj'$libobjs $deplibs $compiler_flags~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~ 164 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~ 165 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags~ 166 $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~ 167 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags' 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 darwin* | rhapsody*) 179 allow_undefined_flag='-undefined suppress' 180 archive_cmds='$CC `test .$module = .yes && echo -bundle || echo -dynamiclib` $allow_undefined_flag -o $lib $libobjs $deplibs $linkopts -install_name $rpath/$soname `test -n "$verstring" -a x$verstring != x0.0 && echo $verstring`' 181 # We need to add '_' to the symbols in $export_symbols first 182 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' 183 hardcode_direct=yes 184 hardcode_shlibpath_var=no 185 whole_archive_flag_spec='-all_load $convenience' 168 186 ;; 169 187 … … 173 191 wlarc= 174 192 else 175 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'176 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'193 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 194 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 177 195 fi 178 196 ;; … … 237 255 else 238 256 # PORTME fill in a description of your system's linker (not GNU ld) 239 case "$host_os"in257 case $host_os in 240 258 aix3*) 241 259 allow_undefined_flag=unsupported … … 252 270 ;; 253 271 254 aix4* )255 hardcode_ libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib'272 aix4* | aix5*) 273 hardcode_direct=yes 256 274 hardcode_libdir_separator=':' 275 link_all_deplibs=yes 276 # When large executables or shared objects are built, AIX ld can 277 # have problems creating the table of contents. If linking a library 278 # or program results in "error TOC overflow" add -mminimal-toc to 279 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 280 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 257 281 if test "$with_gcc" = yes; then 258 collect2name=`${CC} -print-prog-name=collect2` 259 if test -f "$collect2name" && \ 260 strings "$collect2name" | grep resolve_lib_name >/dev/null 261 then 262 # We have reworked collect2 263 hardcode_direct=yes 282 case $host_os in aix4.[012]|aix4.[012].*) 283 # We only want to do this on AIX 4.2 and lower, the check 284 # below for broken collect2 doesn't work under 4.3+ 285 collect2name=`${CC} -print-prog-name=collect2` 286 if test -f "$collect2name" && \ 287 strings "$collect2name" | grep resolve_lib_name >/dev/null 288 then 289 # We have reworked collect2 290 hardcode_direct=yes 291 else 292 # We have old collect2 293 hardcode_direct=unsupported 294 # It fails to find uninstalled libraries when the uninstalled 295 # path is not listed in the libpath. Setting hardcode_minus_L 296 # to unsupported forces relinking 297 hardcode_minus_L=yes 298 hardcode_libdir_flag_spec='-L$libdir' 299 hardcode_libdir_separator= 300 fi 301 esac 302 shared_flag='-shared' 303 else 304 # not using gcc 305 if test "$host_cpu" = ia64; then 306 shared_flag='${wl}-G' 264 307 else 265 # We have old collect2 266 hardcode_direct=unsupported 267 # It fails to find uninstalled libraries when the uninstalled 268 # path is not listed in the libpath. Setting hardcode_minus_L 269 # to unsupported forces relinking 270 hardcode_minus_L=yes 271 hardcode_libdir_flag_spec='-L$libdir' 272 hardcode_libdir_separator= 308 shared_flag='${wl}-bM:SRE' 273 309 fi 274 shared_flag='-shared' 275 else 276 shared_flag='${wl}-bM:SRE' 277 hardcode_direct=yes 278 fi 279 allow_undefined_flag=' ${wl}-berok' 280 archive_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}' 281 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}' 282 case "$host_os" in aix4.[01]|aix4.[01].*) 283 # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on 284 always_export_symbols=yes ;; 285 esac 286 ;; 310 fi 311 312 if test "$host_cpu" = ia64; then 313 # On IA64, the linker does run time linking by default, so we don't 314 # have to do anything special. 315 aix_use_runtimelinking=no 316 if test $with_gnu_ld = no; then 317 exp_sym_flag='-Bexport' 318 no_entry_flag="" 319 fi 320 else 321 # Test if we are trying to use run time linking, or normal AIX style linking. 322 # If -brtl is somewhere in LDFLAGS, we need to do run time linking. 323 aix_use_runtimelinking=no 324 for ld_flag in $LDFLAGS; do 325 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then 326 aix_use_runtimelinking=yes 327 break 328 fi 329 done 330 exp_sym_flag='-bexport' 331 no_entry_flag='-bnoentry' 332 fi 333 # -bexpall does not export symbols beginning with underscore (_) 334 always_export_symbols=yes 335 if test "$aix_use_runtimelinking" = yes; then 336 # Warning - without using the other run time loading flags (-brtl), -berok will 337 # link without error, but may produce a broken library. 338 allow_undefined_flag=' ${wl}-berok' 339 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' 340 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" 341 else 342 if test "$host_cpu" = ia64; then 343 if test $with_gnu_ld = no; then 344 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 345 allow_undefined_flag="-z nodefs" 346 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" 347 fi 348 else 349 allow_undefined_flag=' ${wl}-berok' 350 # -bexpall does not export symbols beginning with underscore (_) 351 always_export_symbols=yes 352 # Exported symbols can be pulled into shared objects from archives 353 whole_archive_flag_spec=' ' 354 build_libtool_need_lc=yes 355 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' 356 # This is similar to how AIX traditionally builds it's shared libraries. 357 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' 358 fi 359 fi 360 ;; 287 361 288 362 amigaos*) … … 309 383 # FIXME: Should let the user specify the lib program. 310 384 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 311 fix_srcfile_path='`cygpath -w $srcfile`'385 fix_srcfile_path='`cygpath -w "$srcfile"`' 312 386 ;; 313 387 … … 344 418 345 419 hpux9* | hpux10* | hpux11*) 346 case "$host_os" in 347 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' ;; 348 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; 420 case "$host_cpu" in 421 ia64*) 422 hardcode_direct=no 423 hardcode_shlibpath_var=no 424 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 425 hardcode_libdir_flag_spec='-L$libdir' ;; 426 *) 427 if test $with_gcc = yes; then 428 case "$host_os" in 429 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' ;; 430 *) archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; 431 esac 432 else 433 case $host_os in 434 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' ;; 435 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; 436 esac 437 fi 438 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 439 hardcode_libdir_separator=: 440 hardcode_minus_L=yes # Not in the search PATH, but as the default 441 # location of the library. 442 ;; 349 443 esac 350 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'351 hardcode_libdir_separator=:352 hardcode_direct=yes353 hardcode_minus_L=yes # Not in the search PATH, but as the default354 # location of the library.355 444 export_dynamic_flag_spec='${wl}-E' 445 hardcode_direct=yes 356 446 ;; 357 447 … … 373 463 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 374 464 fi 375 hardcode_libdir_flag_spec='${wl}-R$libdir' 376 hardcode_direct=yes 465 hardcode_libdir_flag_spec='-R$libdir' 466 hardcode_direct=yes 467 hardcode_shlibpath_var=no 468 ;; 469 470 newsos6) 471 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts' 472 hardcode_direct=yes 473 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 474 hardcode_libdir_separator=: 377 475 hardcode_shlibpath_var=no 378 476 ;; … … 409 507 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 410 508 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' 509 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 411 510 else 412 511 allow_undefined_flag=' -expect_unresolved \*' 413 512 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' 414 fi 415 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 513 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 514 $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' 515 516 # cc supports -rpath directly 517 hardcode_libdir_flag_spec='-rpath $libdir' 518 fi 416 519 hardcode_libdir_separator=: 417 520 ;; … … 425 528 426 529 solaris*) 427 no_undefined_flag=' -z text' 428 # $CC -shared without GNU ld will not create a library from C++ 429 # object files and a static libstdc++, better avoid it by now 430 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 431 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 432 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 530 no_undefined_flag=' -z defs' 531 if test "$with_gcc" = yes; then 532 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 533 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 534 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 535 else 536 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 537 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 538 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 539 fi 433 540 hardcode_libdir_flag_spec='-R$libdir' 434 541 hardcode_shlibpath_var=no 435 case "$host_os"in542 case $host_os in 436 543 solaris2.[0-5] | solaris2.[0-5].*) ;; 437 544 *) # Supported since Solaris 2.6 (maybe 2.5.1?) … … 505 612 ;; 506 613 507 unixware7*) 508 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 614 sysv5uw7* | unixware7*) 615 no_undefined_flag='${wl}-z ${wl}text' 616 if test "$GCC" = yes; then 617 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 618 else 619 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 620 fi 509 621 runpath_var='LD_RUN_PATH' 510 622 hardcode_shlibpath_var=no … … 532 644 ac_cv_prog_cc_static='-static' 533 645 534 case "$host_os" in 535 beos* | irix5* | irix6* | osf3* | osf4* | osf5*) 536 # PIC is the default for these OSes. 537 ;; 646 case $host_os in 538 647 aix*) 539 # Below there is a dirty hack to force normal static linking with -ldl 540 # The problem is because libdl dynamically linked with both libc and 541 # libC (AIX C++ library), which obviously doesn't included in libraries 542 # list by gcc. This cause undefined symbols with -static flags. 543 # This hack allows C programs to be linked with "-static -ldl", but 544 # we not sure about C++ programs. 545 ac_cv_prog_cc_static="$ac_cv_prog_cc_static ${ac_cv_prog_cc_wl}-lC" 546 ;; 547 cygwin* | mingw* | os2*) 548 # This hack is so that the source file can tell whether it is being 549 # built for inclusion in a dll (and should export symbols for example). 550 ac_cv_prog_cc_pic='-DDLL_EXPORT' 648 # All AIX code is PIC. 649 if test "$host_cpu" = ia64; then 650 # AIX 5 now supports IA64 processor 651 lt_cv_prog_cc_static='-Bstatic' 652 else 653 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' 654 fi 551 655 ;; 552 656 amigaos*) … … 556 660 ac_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' 557 661 ;; 662 beos* | irix5* | irix6* | osf3* | osf4* | osf5*) 663 # PIC is the default for these OSes. 664 ;; 665 cygwin* | mingw* | os2*) 666 # This hack is so that the source file can tell whether it is being 667 # built for inclusion in a dll (and should export symbols for example). 668 ac_cv_prog_cc_pic='-DDLL_EXPORT' 669 ;; 670 darwin* | rhapsody*) 671 # PIC is the default on this platform 672 # Common symbols not allowed in MH_DYLIB files 673 lt_cv_prog_cc_pic='-fno-common' 674 ;; 675 *djgpp*) 676 # DJGPP does not support shared libraries at all 677 ac_cv_prog_cc_pic= 678 ;; 558 679 sysv4*MP*) 559 680 if test -d /usr/nec; then … … 567 688 else 568 689 # PORTME Check for PIC flags for the system compiler. 569 case "$host_os"in570 aix 3* | aix4*)690 case $host_os in 691 aix*) 571 692 # All AIX code is PIC. 572 ac_cv_prog_cc_static= '-bnso -bI:/lib/syscalls.exp'693 ac_cv_prog_cc_static="$ac_cv_prog_cc_static ${ac_cv_prog_cc_wl}-lC" 573 694 ;; 574 695 … … 592 713 ;; 593 714 715 newsos6) 716 ac_cv_prog_cc_pic='-KPIC' 717 ac_cv_prog_cc_static='-Bstatic' 718 ;; 719 594 720 osf3* | osf4* | osf5*) 595 721 # All OSF/1 code is PIC. … … 639 765 esac 640 766 fi 641 ac_cv_prog_cc_pic="$ac_cv_prog_cc_pic -DPIC" 767 case "$host_os" in 768 # Platforms which do not suport PIC and -DPIC is meaningless 769 # on them: 770 *djgpp*) 771 ac_cv_prog_cc_pic= 772 ;; 773 *) 774 ac_cv_prog_cc_pic="$ac_cv_prog_cc_pic -DPIC" 775 ;; 776 esac 642 777 fi 643 778 644 779 need_lc=yes 645 780 if test "$enable_shared" = yes && test "$with_gcc" = yes; then 646 case "$archive_cmds"in781 case $archive_cmds in 647 782 *'~'*) 648 783 # FIXME: we may have to deal with multi-command sequences. … … 664 799 soname=conftest 665 800 lib=conftest 666 libobjs=conftest. o801 libobjs=conftest.$objext 667 802 deplibs= 668 803 wl=$ac_cv_prog_cc_wl -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.