Changeset d8a3cb0


Ignore:
Timestamp:
May 21, 2011 5:09:30 PM (9 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
45f30209
Parents:
b5dc9b6f
Message:

change build script to GMP 4.3.2

File:
1 edited

Legend:

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

    rb5dc9b6f rd8a3cb0  
    44#
    55#  To build a static library:
    6 #     download gmp-4.2.2.tar.bz2 to this directory
     6#     Set $I2P to point to your I2P installation
     7#     Set $JAVA_HOME to point to your Java SDK
     8#     build.sh
     9#       This script downloads gmp-4.3.2.tar.bz2 to this directory
    710#       (if a different version, change the VER= line below)
    8 #     build.sh
    911#
    1012#  To build a dynamic library (you must have a libgmp.so somewhere in your system)
     13#     Set $I2P to point to your I2P installation
     14#     Set $JAVA_HOME to point to your Java SDK
    1115#     build.sh dynamic
    1216#
     
    1620mkdir -p lib/
    1721mkdir -p bin/local
    18 VER=4.3.1
     22VER=4.3.2
    1923
    2024set -e
     
    2226if [ "$1" != "dynamic" -a ! -d gmp-$VER ]
    2327then
    24         TAR=gmp-$VER.tar.lzma
     28        TAR=gmp-$VER.tar.bz2
    2529        if [ ! -f $TAR ]
    2630        then
    27             echo "Downloading ftp://ftp.gmplib.org/pub/gmp-4.3.1/gmp-4.3.1.tar.lzma"
    28             wget ftp://ftp.gmplib.org/pub/gmp-4.3.1/gmp-4.3.1.tar.lzma
     31            echo "Downloading ftp://ftp.gmplib.org/pub/gmp-${VER}/gmp-${VER}.tar.bz2"
     32            wget ftp://ftp.gmplib.org/pub/gmp-${VER}/gmp-${VER}.tar.bz2
    2933        fi
    3034
     
    3236
    3337        echo "Extracting GMP..."
    34         tar -xf gmp-$VER.tar.lzma --lzma
     38        tar -xjf gmp-$VER.tar.bz2
    3539fi
    3640
     
    4549                        ../../gmp-$VER/configure --with-pic;;
    4650                *)
     51                        # and it's required for ASLR
    4752                        ../../gmp-$VER/configure --with-pic;;
    4853        esac
Note: See TracChangeset for help on using the changeset viewer.