Changeset 6d70224 for core/c


Ignore:
Timestamp:
Jun 7, 2011 12:57:25 AM (9 years ago)
Author:
kytv <kytv@…>
Branches:
master
Children:
83ccc0ff
Parents:
7b04c7e
Message:

Add x64 for FreeBSD

File:
1 edited

Legend:

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

    r7b04c7e r6d70224  
    1616
    1717rm -rf lib
    18 mkdir lib
    19 mkdir lib/freenet
    20 mkdir lib/freenet/support
    21 mkdir lib/freenet/support/CPUInformation
     18#mkdir lib
     19#mkdir lib/freenet
     20#mkdir lib/freenet/support
     21mkdir -p lib/freenet/support/CPUInformation
    2222
    2323CC="gcc"
     
    3131        LIBFILE="lib/freenet/support/CPUInformation/jcpuid-x86-windows.dll";;
    3232FreeBSD*)
    33         COMPILEFLAGS="-Wall"
    34         INCLUDES="-I. -Iinclude -I$JAVA_HOME/include/ -I$JAVA_HOME/include/freebsd/"
    35         LINKFLAGS="-shared -static -Wl,-soname,libjcpuid-x86-freebsd.so"
    36         LIBFILE="lib/freenet/support/CPUInformation/libjcpuid-x86-freebsd.so";;
     33        case `uname -m` in
     34                amd64)
     35                        LINKFLAGS="-shared -Wl,-soname,libjcpuid-x86_64-freebsd.so"
     36                        LIBFILE="lib/freenet/support/CPUInformation/libjcpuid-x86_64-freebsd.so";;
     37                i?86*)
     38                        LINKFLAGS="-shared -Wl,-soname,libjcpuid-x86-freebsd.so"
     39                        LIBFILE="lib/freenet/support/CPUInformation/libjcpuid-x86-freebsd.so";;
     40                *)
     41                        echo "Unknown build environment"
     42                        exit;;
     43        esac
     44        COMPILEFLAGS="-fPIC -Wall"
     45        INCLUDES="-I. -Iinclude -I$JAVA_HOME/include/ -I$JAVA_HOME/include/freebsd/";;
    3746Linux*)
    3847        case `uname -m` in
Note: See TracChangeset for help on using the changeset viewer.