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

Last change on this file since b7c10d2 was 816149ef, checked in by kytv <kytv@…>, 8 years ago

debian: refresh patches

  • Property mode set to 100644
File size: 1.2 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 b1a68dd..99b31e4 100755
    a b SunOS*|OpenBSD*|NetBSD*|*FreeBSD*|Linux*) 
    3939            UNIXTYPE="linux"
    4040        fi
    4141        COMPILEFLAGS="-fPIC -Wall"
    42         INCLUDES="-I. -I../../jbigi/include -I$JAVA_HOME/include -I$JAVA_HOME/include/${UNIXTYPE}"
     42        INCLUDES="-I. -I./jbigi/include -I$JAVA_HOME/include -I$JAVA_HOME/include/${UNIXTYPE}"
    4343        LINKFLAGS="-shared -Wl,-soname,libjbigi.so"
    4444        LIBFILE="libjbigi.so";;
    4545*)
    fi 
    5858
    5959echo "Compiling C code..."
    6060rm -f jbigi.o $LIBFILE
    61 $CC -c $COMPILEFLAGS $INCLUDES ../../jbigi/src/jbigi.c || exit 1
     61$CC -c $COMPILEFLAGS $INCLUDES ./jbigi/src/jbigi.c || exit 1
    6262$CC $LINKFLAGS $INCLUDES -o $LIBFILE jbigi.o $INCLUDELIBS $STATICLIBS || exit 1
    6363
    6464exit 0
Note: See TracBrowser for help on using the repository browser.