Changeset 618 for trunk/src/binutils/ltcf-c.sh
- Timestamp:
- Aug 16, 2003, 11:33:53 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/binutils/ltcf-c.sh
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r617 r618 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 ;; … … 411 509 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 412 510 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' 511 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 413 512 else 414 513 allow_undefined_flag=' -expect_unresolved \*' 415 514 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' 416 fi 417 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 515 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 516 $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' 517 518 # cc supports -rpath directly 519 hardcode_libdir_flag_spec='-rpath $libdir' 520 fi 418 521 hardcode_libdir_separator=: 419 522 ;; … … 427 530 428 531 solaris*) 429 no_undefined_flag=' -z text' 430 # $CC -shared without GNU ld will not create a library from C++ 431 # object files and a static libstdc++, better avoid it by now 432 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 433 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 434 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 532 no_undefined_flag=' -z defs' 533 if test "$with_gcc" = yes; then 534 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 535 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 536 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 537 else 538 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 539 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 540 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 541 fi 435 542 hardcode_libdir_flag_spec='-R$libdir' 436 543 hardcode_shlibpath_var=no 437 case "$host_os"in544 case $host_os in 438 545 solaris2.[0-5] | solaris2.[0-5].*) ;; 439 546 *) # Supported since Solaris 2.6 (maybe 2.5.1?) … … 507 614 ;; 508 615 509 unixware7*) 510 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 616 sysv5uw7* | unixware7*) 617 no_undefined_flag='${wl}-z ${wl}text' 618 if test "$GCC" = yes; then 619 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 620 else 621 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 622 fi 511 623 runpath_var='LD_RUN_PATH' 512 624 hardcode_shlibpath_var=no … … 534 646 ac_cv_prog_cc_static='-static' 535 647 536 case "$host_os" in 537 beos* | irix5* | irix6* | osf3* | osf4* | osf5*) 538 # PIC is the default for these OSes. 539 ;; 648 case $host_os in 540 649 aix*) 541 # Below there is a dirty hack to force normal static linking with -ldl 542 # The problem is because libdl dynamically linked with both libc and 543 # libC (AIX C++ library), which obviously doesn't included in libraries 544 # list by gcc. This cause undefined symbols with -static flags. 545 # This hack allows C programs to be linked with "-static -ldl", but 546 # we not sure about C++ programs. 547 ac_cv_prog_cc_static="$ac_cv_prog_cc_static ${ac_cv_prog_cc_wl}-lC" 548 ;; 549 cygwin* | mingw* | os2*) 550 # This hack is so that the source file can tell whether it is being 551 # built for inclusion in a dll (and should export symbols for example). 552 ac_cv_prog_cc_pic='-DDLL_EXPORT' 650 # All AIX code is PIC. 651 if test "$host_cpu" = ia64; then 652 # AIX 5 now supports IA64 processor 653 lt_cv_prog_cc_static='-Bstatic' 654 else 655 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' 656 fi 553 657 ;; 554 658 amigaos*) … … 558 662 ac_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' 559 663 ;; 664 beos* | irix5* | irix6* | osf3* | osf4* | osf5*) 665 # PIC is the default for these OSes. 666 ;; 667 cygwin* | mingw* | os2*) 668 # This hack is so that the source file can tell whether it is being 669 # built for inclusion in a dll (and should export symbols for example). 670 ac_cv_prog_cc_pic='-DDLL_EXPORT' 671 ;; 672 darwin* | rhapsody*) 673 # PIC is the default on this platform 674 # Common symbols not allowed in MH_DYLIB files 675 lt_cv_prog_cc_pic='-fno-common' 676 ;; 677 *djgpp*) 678 # DJGPP does not support shared libraries at all 679 ac_cv_prog_cc_pic= 680 ;; 560 681 sysv4*MP*) 561 682 if test -d /usr/nec; then … … 569 690 else 570 691 # PORTME Check for PIC flags for the system compiler. 571 case "$host_os"in572 aix 3* | aix4*)692 case $host_os in 693 aix*) 573 694 # All AIX code is PIC. 574 ac_cv_prog_cc_static= '-bnso -bI:/lib/syscalls.exp'695 ac_cv_prog_cc_static="$ac_cv_prog_cc_static ${ac_cv_prog_cc_wl}-lC" 575 696 ;; 576 697 … … 594 715 ;; 595 716 717 newsos6) 718 ac_cv_prog_cc_pic='-KPIC' 719 ac_cv_prog_cc_static='-Bstatic' 720 ;; 721 596 722 osf3* | osf4* | osf5*) 597 723 # All OSF/1 code is PIC. … … 641 767 esac 642 768 fi 643 ac_cv_prog_cc_pic="$ac_cv_prog_cc_pic -DPIC" 769 case "$host_os" in 770 # Platforms which do not suport PIC and -DPIC is meaningless 771 # on them: 772 *djgpp*) 773 ac_cv_prog_cc_pic= 774 ;; 775 *) 776 ac_cv_prog_cc_pic="$ac_cv_prog_cc_pic -DPIC" 777 ;; 778 esac 644 779 fi 645 780 646 781 need_lc=yes 647 782 if test "$enable_shared" = yes && test "$with_gcc" = yes; then 648 case "$archive_cmds"in783 case $archive_cmds in 649 784 *'~'*) 650 785 # FIXME: we may have to deal with multi-command sequences. … … 666 801 soname=conftest 667 802 lib=conftest 668 libobjs=conftest. o803 libobjs=conftest.$objext 669 804 deplibs= 670 805 wl=$ac_cv_prog_cc_wl -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.