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

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

Debian: Refresh patches after jbigi/jcpuid build script changes

  • 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  
    4343            BUILD_OS="linux"
    4444        fi
    4545        COMPILEFLAGS="-fPIC -Wall $CFLAGS"
    46         INCLUDES="-I. -I../../jbigi/include -I$JAVA_HOME/include -I$JAVA_HOME/include/$BUILD_OS -I/usr/local/include"
     46        INCLUDES="-I. -I./jbigi/include -I$JAVA_HOME/include -I$JAVA_HOME/include/$BUILD_OS -I/usr/local/include"
    4747        LINKFLAGS="-shared -Wl,-soname,libjbigi.so"
    4848        LIBFILE="libjbigi.so";;
    4949*)
     
    6464[ $BITS -eq 64 ] && COMPILEFLAGS="-m64 $COMPILEFLAGS" && LINKFLAGS="-m64 $LINKFLAGS"
    6565
    6666echo "Compiling C code..."
    67 echo "Compile: \"$CC -c $COMPILEFLAGS $INCLUDES ../../jbigi/src/jbigi.c\""
    68 $CC -c $COMPILEFLAGS $INCLUDES ../../jbigi/src/jbigi.c || exit 1
     67echo "Compile: \"$CC -c $COMPILEFLAGS $INCLUDES ./jbigi/src/jbigi.c\""
     68$CC -c $COMPILEFLAGS $INCLUDES ./jbigi/src/jbigi.c || exit 1
    6969echo "Link: \"$CC $LINKFLAGS $INCLUDES -o $LIBFILE jbigi.o $INCLUDELIBS $STATICLIBS $LIBPATH\""
    7070$CC $LINKFLAGS $INCLUDES -o $LIBFILE jbigi.o $INCLUDELIBS $STATICLIBS $LIBPATH || exit 1
    7171
Note: See TracBrowser for help on using the repository browser.