Ticket #1228: gcc.jam.3.patch
File gcc.jam.3.patch, 2.7 KB (added by , 15 years ago) |
---|
-
tools/gcc.jam
4 4 # Copyright (c) 2005 Reece H. Dunn. 5 5 # Copyright 2006 Ilya Sokolov. 6 6 # Copyright 2007 Roland Schwarz 7 # Copyright 2007 Boris Gubenko. 7 8 # 8 9 # Distributed under the Boost Software License, Version 1.0. 9 10 # (See accompanying file LICENSE_1_0.txt or copy at … … 137 138 { 138 139 linker = osf ; 139 140 } 141 else if [ os.name ] = HPUX 142 { 143 linker = hpux ; 144 } 140 145 else 141 146 { 142 147 linker = gnu ; … … 332 337 # to implement and will increase target path length even more. 333 338 flags gcc.compile OPTIONS <link>shared : -fPIC ; 334 339 } 335 if [ os.name ] != NT && [ os.name ] != OSF 340 if [ os.name ] != NT && [ os.name ] != OSF && [ os.name ] != HPUX 336 341 { 337 342 # OSF does have an option called -soname but it doesn't seem to work as 338 343 # expected, therefore it has been disabled. … … 500 505 flags gcc.link FINDLIBS-SA <find-shared-library> ; 501 506 flags gcc.link LIBRARIES <library-file> ; 502 507 503 # For <runtime-link>static we made sure there are no dynamic libraries504 # in the link505 flags gcc.link OPTIONS <runtime-link>static : -static ;506 507 508 # Now, the vendor specific flags 508 509 # The parameter linker can be either gnu or sun 509 510 rule init-link-flags ( toolset linker condition ) … … 608 609 flags $(toolset).link OPTIONS $(condition)/<link>shared : -mimpure-text 609 610 : unchecked ; 610 611 } 612 613 case hpux : 614 { 615 flags $(toolset).link OPTIONS $(condition)/<debug-symbols>off : -Wl,-s 616 : unchecked ; 617 flags $(toolset).link OPTIONS $(condition)/<link>shared : -fPIC 618 : unchecked ; 619 } 620 611 621 case * : 612 622 { 613 623 errors.user-error … … 734 744 { 735 745 # gcc on IRIX does not support multi-threading, don't set anything here. 736 746 } 737 case HP_UX :738 {739 # gcc on HP-UX does not support multi-threading, don't set anything here740 }741 747 case Darwin : 742 748 { 743 749 # Darwin has no threading options, don't set anything here. … … 750 756 } 751 757 } 752 758 759 # For <runtime-link>static we made sure there are no dynamic libraries 760 # in the link. 761 # On HP-UX not all system libraries exist as archived libraries (for example, 762 # there is no libunwind.a), so, on this platform, the -static option cannot 763 # be specified. 764 765 if [ os.name ] != HPUX 766 { 767 flags gcc.link OPTIONS <runtime-link>static : -static ; 768 } 769 753 770 local rule cpu-flags ( toolset variable : architecture : instruction-set + : values + : default ? ) 754 771 { 755 772 if $(default)