Changeset 9445690 for core/c


Ignore:
Timestamp:
Mar 12, 2016 7:36:21 PM (4 years ago)
Author:
str4d <str4d@…>
Branches:
master
Children:
0de1ca1
Parents:
f4abb28
git-author:
dev <dev@…> (03/12/16 19:36:21)
git-committer:
str4d <str4d@…> (03/12/16 19:36:21)
Message:

Fixed OSX include search path.

File:
1 edited

Legend:

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

    rf4abb28 r9445690  
    3737if [ $BITS -eq 32 ]; then
    3838  export ABI=32
    39   export CFLAGS="-m32"
     39  export CFLAGS="-m32 -mtune=i686 -march=i686"
    4040  export LDFLAGS="-m32"
    4141elif [ $BITS -eq 64 ]; then
    4242  export ABI=64
    43   export CFLAGS="-m64"
     43  export CFLAGS="-m64 -mtune=generic"
    4444  export LDFLAGS="-m64"
    4545else
     
    8484        JAVA_HOME=$(/usr/libexec/java_home)
    8585        CFLAGS="${CFLAGS} -fPIC -Wall -arch x86_64 -arch i386"
    86         INCLUDES="-I. -Iinclude -I${JAVA_HOME}/include/"
     86        INCLUDES="-I. -Iinclude -I${JAVA_HOME}/include/ -I${JAVA_HOME}/include/dawrin/"
    8787        LDFLAGS="${LDFLAGS} -dynamiclib -framework JavaVM"
    8888        LIBFILE="lib/freenet/support/CPUInformation/libjcpuid-x86-darwin.jnilib";;
     
    119119echo "HOST:$HOST"
    120120echo "ARCH:$ARCH"
     121echo "CFLAGS:$CFLAGS"
     122echo "LDFLAGS:$LDFLAGS"
     123echo ""
    121124
    122125echo "Compiling C code..."
Note: See TracChangeset for help on using the changeset viewer.