Changeset f2fe514


Ignore:
Timestamp:
Sep 18, 2011 4:59:24 PM (9 years ago)
Author:
kytv <kytv@…>
Branches:
master
Children:
e92c23c
Parents:
2261039
Message:

Add NetBSD support

Location:
core/c
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • core/c/jcpuid/mbuild.sh

    r2261039 rf2fe514  
    33case `uname -sr` in
    44MINGW*)
    5         echo "Building windows .dll's";;
     5        echo "Building windows .dlls";;
    66CYGWIN*)
    7         echo "Building windows .dll's";;
     7        echo "Building windows .dlls";;
    88Linux*)
    9         echo "Building linux .so's";;
     9        echo "Building linux .sos";;
     10NetBSD*)
     11        echo "Building netbsd .sos";;
    1012FreeBSD*)
    11         echo "Building freebsd .so's";;
     13        echo "Building freebsd .sos";;
    1214Darwin*)
    1315        echo "Building OSX jnilibs";;
     
    3840        LINKFLAGS="-dynamiclib -framework JavaVM"
    3941        LIBFILE="lib/freenet/support/CPUInformation/libjcpuid-x86-darwin.jnilib";;
     42NetBSD*)
     43        case `uname -m` in
     44                amd64)
     45                        LINKFLAGS="-shared -Wl,-soname,libjcpuid-x86_64-netbsd.so"
     46                        LIBFILE="lib/netnet/support/CPUInformation/libjcpuid-x86_64-netbsd.so";;
     47                i?86*)
     48                        LINKFLAGS="-shared -Wl,-soname,libjcpuid-x86-netbsd.so"
     49                        LIBFILE="lib/netnet/support/CPUInformation/libjcpuid-x86-netbsd.so";;
     50                *)
     51                        echo "Unknown build environment"
     52                        exit;;
     53        esac
     54        COMPILEFLAGS="-fPIC -Wall"
     55        INCLUDES="-I. -Iinclude -I$JAVA_HOME/include/ -I$JAVA_HOME/include/netbsd/";;
    4056FreeBSD*)
    4157        case `uname -m` in
  • core/c/mbuild.sh

    r2261039 rf2fe514  
    1 #/bin/bash
     1#/usr/bin/env bash
    22# Automatic build of so files, ignores failed builds.
    33# Place latest gmp tarball in the jbigi dir, and exec this script.
Note: See TracChangeset for help on using the changeset viewer.