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

Context Navigation

  • Back to dev-libs/boost/1.38.0

dev-libs/boost/1.38.0: boost-1_38_0-haiku-gcc4-rev2.diff

File boost-1_38_0-haiku-gcc4-rev2.diff, 8.5 KB (added by adek336, 6 years ago)
  • boost/config/platform/haiku.hpp

    diff -Naur clean_boost_1_38_0/boost/config/platform/haiku.hpp pom3-boost/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> 
     28  
     29 
     30 
  • boost/config/select_platform_config.hpp

    diff -Naur clean_boost_1_38_0/boost/config/select_platform_config.hpp pom3-boost/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 
     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 clean_boost_1_38_0/boost/config/stdlib/libstdcpp3.hpp pom3-boost/boost/config/stdlib/libstdcpp3.hpp
    old new  
    3131 
    3232#ifdef __GLIBCXX__ // gcc 3.4 and greater: 
    3333#  if defined(_GLIBCXX_HAVE_GTHR_DEFAULT) \ 
    34         || defined(_GLIBCXX__PTHREADS) 
     34        || defined(_GLIBCXX__PTHREADS) || defined(__HAIKU__) 
    3535      // 
    3636      // If the std lib has thread support turned on, then turn it on in Boost 
    3737      // as well.  We do this because some gcc-3.4 std lib headers define _REENTANT 
  • (a) clean vs. (b) pom2-boost/boost/thread/thread_time.hpp

    diff -Naur clean_boost_1_38_0/boost/thread/thread_time.hpp pom3-boost/boost/thread/thread_time.hpp
    a b  
    1717     
    1818    inline system_time get_system_time() 
    1919    { 
     20#ifndef BOOST_DATE_TIME_HAS_HIGH_PRECISION_CLOCK 
     21#       error "High precision clock not supported on this platform" 
     22#endif 
    2023        return boost::date_time::microsec_clock<system_time>::universal_time(); 
    2124    } 
    2225 
  • tools/build/v2/tools/builtin.jam

    diff -Naur clean_boost_1_38_0/tools/build/v2/tools/builtin.jam pom3-boost/tools/build/v2/tools/builtin.jam
    old new  
    3838 
    3939 
    4040.os-names = aix bsd cygwin darwin freebsd hpux iphone linux netbsd 
    41     openbsd osf qnx qnxnto sgi solaris unix unixware windows ; 
     41    openbsd osf qnx qnxnto sgi solaris unix unixware windows haiku ; 
    4242 
    4343# Feature used to determine which OS we're on. New <target-os> and <host-os> 
    4444# features should be used instead. 
    … …  
    7070            case MACOSX       : host-os = darwin  ; 
    7171            case KFREEBSD     : host-os = freebsd ; 
    7272            case LINUX        : host-os = linux   ; 
     73            case HAIKU        : host-os = haiku   ; 
    7374            case SUNOS        :  
    7475              ECHO "SunOS is not a supported operating system." ; 
    7576              ECHO "We believe last version of SunOS was released in 1992, " ; 
  • tools/build/v2/tools/gcc.jam

    diff -Naur clean_boost_1_38_0/tools/build/v2/tools/gcc.jam pom3-boost/tools/build/v2/tools/gcc.jam
    old new  
    793793# Differs from 'link' above only by -shared. 
    794794actions link.dll bind LIBRARIES 
    795795{ 
    796     "$(CONFIG_COMMAND)" -L"$(LINKPATH)" -Wl,$(RPATH_OPTION:E=-R)$(SPACE)-Wl,"$(RPATH)" "$(.IMPLIB-COMMAND)$(<[1])" -o "$(<[-1])" $(HAVE_SONAME)-Wl,$(SONAME_OPTION)$(SPACE)-Wl,$(<[-1]:D=) -shared $(START-GROUP) "$(>)" "$(LIBRARIES)" $(FINDLIBS-ST-PFX) -l$(FINDLIBS-ST) $(FINDLIBS-SA-PFX) -l$(FINDLIBS-SA) $(END-GROUP) $(OPTIONS) $(USER_OPTIONS) 
     796    "$(CONFIG_COMMAND)" -L"$(LINKPATH)" -Wl,$(RPATH_OPTION:E=-R)$(SPACE)-Wl,"$(RPATH)" "$(.IMPLIB-COMMAND)$(<[1])" -o "$(<[-1])" $(HAVE_SONAME)-Wl,$(SONAME_OPTION)$(SPACE)-Wl,$(<[-1]:D=) -nostart -Wl,-shared $(START-GROUP) "$(>)" "$(LIBRARIES)" $(FINDLIBS-ST-PFX) -l$(FINDLIBS-ST) $(FINDLIBS-SA-PFX) -l$(FINDLIBS-SA) $(END-GROUP) $(OPTIONS) $(USER_OPTIONS) 
    797797} 
    798798 
    799799rule setup-threading ( targets * : sources * : properties * ) 
    … …  
    824824            {             
    825825                # BeOS has no threading options, so do not set anything here. 
    826826            }         
     827            case haiku : 
     828            { 
     829                # pthread 
     830            } 
    827831            case *bsd : 
    828832            { 
    829833                option = -pthread ; 
  • tools/jam/src/Jambase

    diff -Naur clean_boost_1_38_0/tools/jam/src/Jambase pom3-boost/tools/jam/src/Jambase
    old new  
    837837    NOARSCAN    ?= true ; 
    838838    STDHDRS     ?= /boot/develop/headers/posix ; 
    839839} 
    840 else if $(OS) = BEOS 
     840else if $(OS) = BEOS || $(OS) = HAIKU 
    841841{ 
    842842    BINDIR      ?= /boot/apps ; 
    843843    CC          ?= gcc ; 
  • tools/jam/src/boehm_gc/config.guess

    diff -Naur clean_boost_1_38_0/tools/jam/src/boehm_gc/config.guess pom3-boost/tools/jam/src/boehm_gc/config.guess
    old new  
    11991199    BePC:BeOS:*:*)      # BeOS running on Intel PC compatible. 
    12001200        echo i586-pc-beos 
    12011201        exit ;; 
     1202    BePC::Haiku:*:*) 
     1203        echo i586-pc-beos 
     1204        exit ;; 
    12021205    SX-4:SUPER-UX:*:*) 
    12031206        echo sx4-nec-superux${UNAME_RELEASE} 
    12041207        exit ;; 
  • tools/jam/src/boehm_gc/include/private/gcconfig.h

    diff -Naur clean_boost_1_38_0/tools/jam/src/boehm_gc/include/private/gcconfig.h pom3-boost/tools/jam/src/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# endif 
    218222# if defined(LINUX) && (defined(i386) || defined(__i386__)) 
    219223#    define I386 
    220224#    define mach_type_known 
    … …  
    10141018      extern int etext[]; 
    10151019#     define DATASTART ((ptr_t)((((word) (etext)) + 0xfff) & ~0xfff)) 
    10161020#   endif 
     1021#   ifdef HAIKU 
     1022#     define OS_TYPE "HAIKU" 
     1023#     include <OS.h> 
     1024#     define GETPAGESIZE() B_PAGE_SIZE 
     1025      extern int etext[]; 
     1026#     define DATASTART ((ptr_t)((((word) (etext)) + 0xfff) & ~0xfff)) 
     1027#   endif 
    10171028#   ifdef SOLARIS 
    10181029#       define OS_TYPE "SOLARIS" 
    10191030        extern int _etext[], _end[]; 
  • tools/jam/src/fileunix.c

    diff -Naur clean_boost_1_38_0/tools/jam/src/fileunix.c pom3-boost/tools/jam/src/fileunix.c
    old new  
    8080 
    8181# if defined( OS_QNX ) || \ 
    8282     defined( OS_BEOS ) || \ 
     83     defined( OS_HAIKU ) || \ 
    8384     defined( OS_MPEIX ) 
    8485# define NO_AR 
    8586# define HAVE_AR 
  • tools/jam/src/jam.h

    diff -Naur clean_boost_1_38_0/tools/jam/src/jam.h pom3-boost/tools/jam/src/jam.h
    old new  
    234234    #define OS_BEOS 
    235235    #define NO_VFORK 
    236236#endif 
     237#ifdef __HAIKU__ 
     238   #define unix 
     239   #define OSMINOR "OS=HAIKU" 
     240   #define OS_HAIKU 
     241#endif 
    237242#ifdef __bsdi__ 
    238243    #define OSMINOR "OS=BSDI" 
    239244    #define OS_BSDI 
  • tools/jam/src/jambase.c

    diff -Naur clean_boost_1_38_0/tools/jam/src/jambase.c pom3-boost/tools/jam/src/jambase.c
    old new  
    542542"NOARSCAN    ?= true ;\n", 
    543543"STDHDRS     ?= /boot/develop/headers/posix ;\n", 
    544544"}\n", 
    545 "else if $(OS) = BEOS\n", 
     545"else if $(OS) = BEOS || $(OS) = HAIKU\n", 
    546546"{\n", 
    547547"BINDIR      ?= /boot/apps ;\n", 
    548548"CC          ?= gcc ;\n", 

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/