Ignore:
Timestamp:
Jun 11, 2011 9:22:06 PM (9 years ago)
Author:
kytv <kytv@…>
Branches:
master
Children:
0a3bbb2
Parents:
eb17390b
Message:

Add support for OSX to jcpuid's mbuild.sh

File:
1 edited

Legend:

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

    reb17390b r462d4fb  
    1010FreeBSD*)
    1111        echo "Building freebsd .so's";;
     12Darwin*)
     13        echo "Building OSX jnilibs";;
    1214*)
    1315        echo "Unsupported build environment"
     
    3032        LINKFLAGS="-shared -static -static-libgcc -Wl,--kill-at"
    3133        LIBFILE="lib/freenet/support/CPUInformation/jcpuid-x86-windows.dll";;
     34Darwin*)
     35        JAVA_HOME=$(/usr/libexec/java_home)
     36        COMPILEFLAGS="-fPIC -Wall -arch x86_64 -arch i386"
     37        INCLUDES="-I. -Iinclude -I$JAVA_HOME/include/"
     38        LINKFLAGS="-dynamiclib -framework JavaVM"
     39        LIBFILE="lib/freenet/support/CPUInformation/libjcpuid-x86-darwin.jnilib";;
    3240FreeBSD*)
    3341        case `uname -m` in
Note: See TracChangeset for help on using the changeset viewer.