Ticket #5611: hurd-bjam_os.patch

File hurd-bjam_os.patch, 1.1 KB (added by smr@…, 11 years ago)
  • tools/build/v2/engine/src/jam.h

    Description: bjam: define the right OS variable on Hurd
    Author: Pino Toscano <toscano.pino@tiscali.it>
    
    a b  
    391391    #define OSMINOR "OS=KFREEBSD"
    392392    #define OS_KFREEBSD
    393393#endif
     394#ifdef __GNU__
     395    #define OSMINOR "OS=HURD"
     396    #define OS_HURD
     397#endif
    394398#ifndef OSMINOR
    395399    #define OSMINOR "OS=UNKNOWN"
    396400#endif
  • tools/build/v2/test/BoostBuild.py

    a b  
    240240                    jam_build_dir = "bin.freebsd"
    241241                elif os.uname()[0] == "OSF1":
    242242                    jam_build_dir = "bin.osf"
     243                elif os.uname()[0] == "GNU":
     244                    cpu = os.uname()[4]
     245                    if re.match("i.86.*", cpu):
     246                        jam_build_dir = "bin.hurdx86";
     247                    else:
     248                        jam_build_dir = "bin.hurd" + os.uname()[4]
    243249                else:
    244250                    raise "Don't know directory where Jam is built for this system: " + os.name + "/" + os.uname()[0]
    245251            else: