source: debian/patches/0002-jbigi-soname.patch @ 05012a9

Last change on this file since 05012a9 was 05012a9, checked in by zzz <zzz@…>, 4 years ago

refresh deb patches

  • Property mode set to 100644
File size: 1.5 KB
  • core/c/jbigi/build_jbigi.sh

    From: Kill Your TV <killyourtv@i2pmail.org>
    Date: Wed, 11 May 2011 00:12:04 +0000
    Subject: jbigi soname
    
    The purpose of this patch is to change the path that build_jbigi.sh
    expects to find the source files at. At the same time I'm specifying
    a soname to shut lintian up.
    ---
     core/c/jbigi/build_jbigi.sh | 4 ++--
     1 file changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/core/c/jbigi/build_jbigi.sh b/core/c/jbigi/build_jbigi.sh
    index 1521392..6a89c92 100755
    a b  
    6868            BUILD_OS="linux"
    6969        fi
    7070        COMPILEFLAGS="-fPIC -Wall $CFLAGS"
    71         INCLUDES="-I. -I../../jbigi/include -I$JAVA_HOME/include -I$JAVA_HOME/include/$BUILD_OS -I/usr/local/include"
     71        INCLUDES="-I. -I./jbigi/include -I$JAVA_HOME/include -I$JAVA_HOME/include/$BUILD_OS -I/usr/local/include"
    7272        LINKFLAGS="-shared -Wl,-soname,libjbigi.so"
    7373        LIBFILE="libjbigi.so";;
    7474*)
     
    8989[ $BITS -eq 64 ] && COMPILEFLAGS="-m64 $COMPILEFLAGS" && LINKFLAGS="-m64 $LINKFLAGS"
    9090
    9191echo "Compiling C code..."
    92 echo "Compile: \"$CC -c $COMPILEFLAGS $INCLUDES ../../jbigi/src/jbigi.c\""
    93 $CC -c $COMPILEFLAGS $INCLUDES ../../jbigi/src/jbigi.c || exit 1
     92echo "Compile: \"$CC -c $COMPILEFLAGS $INCLUDES ./jbigi/src/jbigi.c\""
     93$CC -c $COMPILEFLAGS $INCLUDES ./jbigi/src/jbigi.c || exit 1
    9494echo "Link: \"$CC $LINKFLAGS $INCLUDES -o $LIBFILE jbigi.o $INCLUDELIBS $STATICLIBS $LIBPATH\""
    9595$CC $LINKFLAGS $INCLUDES -o $LIBFILE jbigi.o $INCLUDELIBS $STATICLIBS $LIBPATH || exit 1
    9696
Note: See TracBrowser for help on using the repository browser.