Changeset c1c3a92 for core/c


Ignore:
Timestamp:
Oct 8, 2015 1:18:38 AM (5 years ago)
Author:
dev <dev@…>
Branches:
master
Children:
6a0d421
Parents:
075c4d4
Message:

Fixed case statement to be independent of case.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/c/jbigi/build_jbigi.sh

    r075c4d4 rc1c3a92  
    2727        LINKFLAGS="-shared -Wl,--kill-at"
    2828        LIBFILE="jbigi.dll";;
    29 CYGWIN*)
     29cygwin*)
    3030        COMPILEFLAGS="-Wall -mno-cygwin"
    3131        INCLUDES="-I. -I../../jbigi/include -I$JAVA_HOME/include/$BUILD_OS/ -I$JAVA_HOME/include/"
     
    3535        COMPILEFLAGS="-fPIC -Wall"
    3636        INCLUDES="-I. -I../../jbigi/include -I$JAVA_HOME/include -I$JAVA_HOME/include/$BUILD_OS -I/usr/local/include"
    37         LINKFLAGS="-m64 -dynamiclib -framework JavaVM"
     37        LINKFLAGS="-dynamiclib -framework JavaVM"
    3838        LIBFILE="libjbigi.jnilib";;
    39 SunOS*|OpenBSD*|NetBSD*|*FreeBSD*|Linux*)
     39sunos*|openbsd*|netbsd*|*freebsd*|linux*)
    4040        if [ $BUILD_OS = "sunos" ]; then
    4141            BUILD_OS="solaris"
     
    6161fi
    6262
    63 [ $BITS -eq 32 ] && COMPILEFLAGS="-m32 $COMPILEFLAGS"
    64 [ $BITS -eq 64 ] && COMPILEFLAGS="-m64 $COMPILEFLAGS"
     63[ $BITS -eq 32 ] && COMPILEFLAGS="-m32 $COMPILEFLAGS" && LINKFLAGS="-m32 $LINKFLAGS"
     64[ $BITS -eq 64 ] && COMPILEFLAGS="-m64 $COMPILEFLAGS" && LINKFLqAGS="-m64 $LINKFLAGS"
    6565
    6666echo "Compiling C code..."
    67 rm -f jbigi.o $LIBFILE
    68 echo "JAVA_HOME: $JAVA_HOME"
    69 echo "INCLUDESs: $INCLUDES"
    70 echo "LD: $LD"
    71 echo "Compile: \"$CC -c $COMPILEFLAGS $INCLUDES ../../jbigi/src/jbigi.c || exit 1\""
     67echo "Compile: \"$CC -c $COMPILEFLAGS $INCLUDES ../../jbigi/src/jbigi.c\""
    7268$CC -c $COMPILEFLAGS $INCLUDES ../../jbigi/src/jbigi.c || exit 1
    73 echo "Link: \"$CC $LINKFLAGS $INCLUDES -o $LIBFILE jbigi.o $INCLUDELIBS $STATICLIBS $LIBPATH || exit 1\""
     69echo "Link: \"$CC $LINKFLAGS $INCLUDES -o $LIBFILE jbigi.o $INCLUDELIBS $STATICLIBS $LIBPATH\""
    7470$CC $LINKFLAGS $INCLUDES -o $LIBFILE jbigi.o $INCLUDELIBS $STATICLIBS $LIBPATH || exit 1
    7571
Note: See TracChangeset for help on using the changeset viewer.