HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • Back to Ticket #375

Ticket #375: boost-1.50.0.patch

File boost-1.50.0.patch, 14.1 KB (added by cipri, 3 years ago)
  • boost/config/platform/haiku.hpp

    diff -Naur boost_1_50_0/boost/config/platform/haiku.hpp boost_1_50_0-haiku/boost/config/platform/haiku.hpp
    old new  
     1//  (C) Copyright John Maddock 2001.  
     2//  Use, modification and distribution are subject to the  
     3//  Boost Software License, Version 1.0. (See accompanying file  
     4//  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 
     5 
     6//  See http://www.boost.org for most recent version. 
     7         
     8//  Haiku specific config options: 
     9 
     10#define BOOST_PLATFORM "Haiku" 
     11 
     12#define BOOST_NO_INTRINSIC_WCHAR_T 
     13#define BOOST_HAS_UNISTD_H 
     14         
     15#define BOOST_HAS_BETHREADS 
     16         
     17#ifndef BOOST_DISABLE_THREADS 
     18#   define BOOST_HAS_THREADS 
     19#endif 
     20 
     21// 
     22// thread API's not auto detected: 
     23// 
     24#define BOOST_HAS_GETTIMEOFDAY 
     25 
     26// boilerplate code: 
     27#include <boost/config/posix_features.hpp> 
  • boost/config/select_platform_config.hpp

    diff -Naur boost_1_50_0/boost/config/select_platform_config.hpp boost_1_50_0-haiku/boost/config/select_platform_config.hpp
    old new  
    4141// win32: 
    4242#  define BOOST_PLATFORM_CONFIG "boost/config/platform/win32.hpp" 
    4343 
     44#elif defined(__HAIKU__) 
     45// Haiku OS 
     46#  define BOOST_PLATFORM_CONFIG "boost/config/platform/haiku.hpp" 
     47 
    4448#elif defined(__BEOS__) 
    4549// BeOS 
    4650#  define BOOST_PLATFORM_CONFIG "boost/config/platform/beos.hpp" 
  • boost/config/stdlib/libstdcpp3.hpp

    diff -Naur boost_1_50_0/boost/config/stdlib/libstdcpp3.hpp boost_1_50_0-haiku/boost/config/stdlib/libstdcpp3.hpp
    old new  
    3535#  if defined(_GLIBCXX_HAVE_GTHR_DEFAULT) \ 
    3636        || defined(_GLIBCXX__PTHREADS) \ 
    3737        || defined(_GLIBCXX_HAS_GTHREADS) \ 
    38         || defined(_WIN32) 
     38        || defined(_WIN32) \ 
     39        || defined(__HAIKU__) 
    3940      // 
    4041      // If the std lib has thread support turned on, then turn it on in Boost 
    4142      // as well.  We do this because some gcc-3.4 std lib headers define _REENTANT 
  • boost/thread/detail/platform.hpp

    diff -Naur boost_1_50_0/boost/thread/detail/platform.hpp boost_1_50_0-haiku/boost/thread/detail/platform.hpp
    old new  
    3434#  define BOOST_THREAD_WIN32 
    3535#elif defined(__BEOS__) 
    3636#  define BOOST_THREAD_BEOS 
     37#elif defined(__HAIKU__) 
     38#  define BOOST_THREAD_BEOS 
    3739#elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__) 
    3840#  define BOOST_THREAD_MACOS 
    3941#  define BOOST_THREAD_WAIT_BUG boost::posix_time::microseconds(1000) 
  • tools/build/v2/engine/boehm_gc/dyn_load.c

    diff -Naur boost_1_50_0/tools/build/v2/engine/boehm_gc/dyn_load.c boost_1_50_0-haiku/tools/build/v2/engine/boehm_gc/dyn_load.c
    old new  
    6464    !defined(AIX) && !defined(SCO_ELF) && !defined(DGUX) && \ 
    6565    !(defined(FREEBSD) && defined(__ELF__)) && \ 
    6666    !(defined(NETBSD) && defined(__ELF__)) && !defined(HURD) && \ 
    67     !defined(DARWIN) && !defined(CYGWIN32) 
     67    !defined(DARWIN) && !defined(CYGWIN32) !(defined(HAIKU) 
    6868 --> We only know how to find data segments of dynamic libraries for the 
    6969 --> above.  Additional SVR4 variants might not be too 
    7070 --> hard to add. 
    … …  
    8282#   define ELFSIZE ARCH_ELFSIZE 
    8383#endif 
    8484 
     85#if defined(HAIKU) 
     86 
     87#endif 
     88 
    8589#if defined(LINUX) && defined(__ELF__) || defined(SCO_ELF) || \ 
    8690    (defined(FREEBSD) && defined(__ELF__)) || defined(DGUX) || \ 
    8791    (defined(NETBSD) && defined(__ELF__)) || defined(HURD) 
    … …  
    216220 
    217221#if defined(LINUX) && defined(__ELF__) || defined(SCO_ELF) || \ 
    218222    (defined(FREEBSD) && defined(__ELF__)) || defined(DGUX) || \ 
    219     (defined(NETBSD) && defined(__ELF__)) || defined(HURD) 
     223    (defined(NETBSD) && defined(__ELF__)) || defined(HURD) || \ 
     224    defined(HAIKU) 
    220225 
    221226 
    222227#ifdef USE_PROC_FOR_LIBRARIES 
  • tools/build/v2/engine/boehm_gc/include/gc_config_macros.h

    diff -Naur boost_1_50_0/tools/build/v2/engine/boehm_gc/include/gc_config_macros.h boost_1_50_0-haiku/tools/build/v2/engine/boehm_gc/include/gc_config_macros.h
    old new  
    4545                             || defined(GC_AIX_THREADS) \ 
    4646                             || defined(GC_LINUX_THREADS) \ 
    4747                             || defined(GC_NETBSD_THREADS) \ 
    48                              || defined(GC_GNU_THREADS)) 
     48                             || defined(GC_GNU_THREADS)) \ 
     49                             || defined(GC_HAIKU_THREADS) 
    4950# define _REENTRANT 
    5051        /* Better late than never.  This fails if system headers that   */ 
    5152        /* depend on this were previously included.                     */ 
    … …  
    6263# if defined(GC_SOLARIS_THREADS) || defined(GC_FREEBSD_THREADS) || \ 
    6364        defined(GC_IRIX_THREADS) || defined(GC_LINUX_THREADS) || \ 
    6465        defined(GC_HPUX_THREADS) || defined(GC_OSF1_THREADS) || \ 
     66        defined(GC_HAIKU_THREADS) || \ 
    6567        defined(GC_DGUX386_THREADS) || defined(GC_DARWIN_THREADS) || \ 
    6668        defined(GC_AIX_THREADS) || defined(GC_NETBSD_THREADS) || \ 
    6769        (defined(GC_WIN32_THREADS) && defined(__CYGWIN32__)) || \ 
  • tools/build/v2/engine/boehm_gc/include/gc.h

    diff -Naur boost_1_50_0/tools/build/v2/engine/boehm_gc/include/gc.h boost_1_50_0-haiku/tools/build/v2/engine/boehm_gc/include/gc.h
    old new  
    494494/* of compilers.                                                        */ 
    495495/* This may also be desirable if it is possible but expensive to        */ 
    496496/* retrieve the call chain.                                             */ 
    497 #if (defined(__linux__) || defined(__NetBSD__) || defined(__OpenBSD__) \ 
     497#if (defined(__linux__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__HAIKU__) \ 
    498498     || defined(__FreeBSD__) || defined(__DragonFly__)) & !defined(GC_CAN_SAVE_CALL_STACKS) 
    499499# define GC_ADD_CALLER 
    500500# if __GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)  
  • tools/build/v2/engine/boehm_gc/include/private/gcconfig.h

    diff -Naur boost_1_50_0/tools/build/v2/engine/boehm_gc/include/private/gcconfig.h boost_1_50_0-haiku/tools/build/v2/engine/boehm_gc/include/private/gcconfig.h
    old new  
    215215#    define BEOS 
    216216#    define mach_type_known 
    217217# endif 
     218# if defined(__HAIKU__) && defined(_X86_) 
     219#    define I386 
     220#    define HAIKU 
     221#    define mach_type_known 
     222# endif 
    218223# if defined(LINUX) && (defined(i386) || defined(__i386__)) 
    219224#    define I386 
    220225#    define mach_type_known 
    … …  
    10141019      extern int etext[]; 
    10151020#     define DATASTART ((ptr_t)((((word) (etext)) + 0xfff) & ~0xfff)) 
    10161021#   endif 
     1022#   ifdef HAIKU 
     1023#     define OS_TYPE "HAIKU" 
     1024#     include <OS.h> 
     1025#     define GETPAGESIZE() B_PAGE_SIZE 
     1026      extern int etext[]; 
     1027#     define DATASTART ((ptr_t)((((word) (etext)) + 0xfff) & ~0xfff)) 
     1028#   endif 
    10171029#   ifdef SOLARIS 
    10181030#       define OS_TYPE "SOLARIS" 
    10191031        extern int _etext[], _end[]; 
  • tools/build/v2/engine/boehm_gc/os_dep.c

    diff -Naur boost_1_50_0/tools/build/v2/engine/boehm_gc/os_dep.c boost_1_50_0-haiku/tools/build/v2/engine/boehm_gc/os_dep.c
    old new  
    777777# endif /* BEOS */ 
    778778 
    779779 
     780# ifdef HAIKU 
     781# include <kernel/OS.h> 
     782ptr_t GC_get_main_stack_base(void){ 
     783        thread_info th; 
     784        get_thread_info(find_thread(NULL),&th); 
     785        return th.stack_end; 
     786} 
     787# endif /* HAIKU */ 
     788 
     789 
    780790# ifdef OS2 
    781791 
    782792ptr_t GC_get_main_stack_base(void) 
    … …  
    10951105 
    10961106#endif /* FREEBSD_STACKBOTTOM */ 
    10971107 
    1098 #if !defined(BEOS) && !defined(AMIGA) && !defined(MSWIN32) \ 
     1108#if !defined(BEOS) && !defined(HAIKU) && !defined(AMIGA) && !defined(MSWIN32) \ 
    10991109    && !defined(MSWINCE) && !defined(OS2) && !defined(NOSYS) && !defined(ECOS) \ 
    11001110    && !defined(CYGWIN32) 
    11011111 
    … …  
    11541164#   endif /* STACKBOTTOM */ 
    11551165} 
    11561166 
    1157 # endif /* ! AMIGA, !OS 2, ! MS Windows, !BEOS, !NOSYS, !ECOS */ 
     1167# endif /* ! AMIGA, !OS 2, ! MS Windows, !BEOS, !HAIKU, !NOSYS, !ECOS */ 
    11581168 
    11591169#if defined(GC_LINUX_THREADS) && !defined(HAVE_GET_STACK_BASE) 
    11601170 
  • tools/build/v2/engine/fileunix.c

    diff -Naur boost_1_50_0/tools/build/v2/engine/fileunix.c boost_1_50_0-haiku/tools/build/v2/engine/fileunix.c
    old new  
    8181 
    8282# if defined( OS_QNX ) || \ 
    8383     defined( OS_BEOS ) || \ 
     84     defined( OS_HAIKU ) || \ 
    8485     defined( OS_MPEIX ) 
    8586# define NO_AR 
    8687# define HAVE_AR 
  • tools/build/v2/engine/jam.h

    diff -Naur boost_1_50_0/tools/build/v2/engine/jam.h boost_1_50_0-haiku/tools/build/v2/engine/jam.h
    old new  
    151151    #define OS_BEOS 
    152152    #define NO_VFORK 
    153153#endif 
     154#ifdef __HAIKU__ 
     155    #define unix 
     156    #define OSMINOR "OS=HAIKU" 
     157    #define OS_HAIKU 
     158#endif 
    154159#ifdef __bsdi__ 
    155160    #define OSMINOR "OS=BSDI" 
    156161    #define OS_BSDI 
  • tools/build/v2/engine/jambase.c

    diff -Naur boost_1_50_0/tools/build/v2/engine/jambase.c boost_1_50_0-haiku/tools/build/v2/engine/jambase.c
    old new  
    548548"NOARSCAN    ?= true ;\n", 
    549549"STDHDRS     ?= /boot/develop/headers/posix ;\n", 
    550550"}\n", 
     551"else if $(OS) = HAIKU\n", 
     552"{\n", 
     553"BINDIR      ?= /boot/common/bin ;\n", 
     554"CC          ?= gcc ;\n", 
     555"C++         ?= $(CC) ;\n", 
     556"FORTRAN     ?= \"\" ;\n", 
     557"LIBDIR      ?= /boot/common/lib ;\n", 
     558"LINK        ?= gcc ;\n", 
     559"LINKLIBS    ?= -lnetwork ;\n", 
     560"NOARSCAN    ?= true ;\n", 
     561"STDHDRS     ?= /boot/develop/headers/posix ;\n", 
     562"}\n", 
    551563"else if $(OS) = BEOS\n", 
    552564"{\n", 
    553565"BINDIR      ?= /boot/apps ;\n", 
  • tools/build/v2/tools/builtin.jam

    diff -Naur boost_1_50_0/tools/build/v2/tools/builtin.jam boost_1_50_0-haiku/tools/build/v2/tools/builtin.jam
    old new  
    4040 
    4141 
    4242.os-names = aix bsd cygwin darwin freebsd hpux iphone linux netbsd 
    43     openbsd osf qnx qnxnto sgi solaris unix unixware windows  
     43    openbsd osf qnx qnxnto sgi solaris unix unixware windows haiku 
    4444    elf # Not actually an OS -- used for targeting bare metal where 
    4545        # object format is ELF.  This catches both -elf and -eabi gcc 
    4646        # targets and well as other compilers targeting ELF. It is not 
    … …  
    7575            case COHERENT     : host-os = unix    ; 
    7676            case DRAGONFLYBSD : host-os = bsd     ; 
    7777            case IRIX         : host-os = sgi     ; 
     78                case HAIKU            : host-os = haiku   ; 
    7879            case MACOSX       : host-os = darwin  ; 
    7980            case KFREEBSD     : host-os = freebsd ; 
    8081            case LINUX        : host-os = linux   ; 
  • tools/build/v2/tools/builtin.py

    diff -Naur boost_1_50_0/tools/build/v2/tools/builtin.py boost_1_50_0-haiku/tools/build/v2/tools/builtin.py
    old new  
    103103        elif host_os == 'MACOSX': host_os = 'darwin' 
    104104        elif host_os == 'KFREEBSD': host_os = 'freebsd' 
    105105        elif host_os == 'LINUX': host_os = 'linux' 
     106        elif host_os == 'HAIKU': host_os = 'haiku' 
    106107        else: host_os = 'unix' 
    107108    return host_os.lower() 
    108109 
  • tools/build/v2/tools/gcc.jam

    diff -Naur boost_1_50_0/tools/build/v2/tools/gcc.jam boost_1_50_0-haiku/tools/build/v2/tools/gcc.jam
    old new  
    10501050            case beos : 
    10511051            {             
    10521052                # BeOS has no threading options, so do not set anything here. 
     1053            } 
     1054             case haiku : 
     1055            {             
     1056                option = -lroot ; 
    10531057            }         
    10541058            case *bsd : 
    10551059            { 
    … …  
    10671071            } 
    10681072            case * : 
    10691073            { 
    1070                 option = -pthread ; 
     1074                option = -pthreads ; 
    10711075                libs = rt ; 
    10721076            } 
    10731077        } 
  • tools/build/v2/tools/gcc.py

    diff -Naur boost_1_50_0/tools/build/v2/tools/gcc.py boost_1_50_0-haiku/tools/build/v2/tools/gcc.py
    old new  
    675675    elif host_os_name == 'BeOS': 
    676676        # BeOS has no threading options, don't set anything here. 
    677677        pass 
     678    elif host_os_name == 'Haiku': 
     679        flags('gcc', 'OPTIONS', ['<threading>multi'], ['-lroot']) 
     680        # there is no -lrt on HAIKU 
    678681    elif host_os_name.endswith('BSD'): 
    679682        flags('gcc', 'OPTIONS', ['<threading>multi'], ['-pthread']) 
    680683        # there is no -lrt on BSD 
  • tools/build/v2/tools/python.jam

    diff -Naur boost_1_50_0/tools/build/v2/tools/python.jam boost_1_50_0-haiku/tools/build/v2/tools/python.jam
    old new  
    648648        case qnx* : return ; 
    649649        case darwin : return ; 
    650650        case windows : return ; 
     651        case haiku : return ; 
    651652 
    652653        case hpux : return  <library>rt ; 
    653654        case *bsd : return  <library>pthread <toolset>gcc:<library>util ; 
    654655 
    655656        case aix : return  <library>pthread <library>dl ; 
    656657 
    657         case * : return <library>pthread <library>dl  
     658        case * : return ;  <library>pthread <library>dl  
    658659            <toolset>gcc:<library>util <toolset-intel:platform>linux:<library>util ; 
    659660    } 
    660661} 

Download in other formats:

  • Original Format

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/