- Timestamp:
- Sep 7, 2009 5:33:29 PM (11 years ago)
- Branches:
- master
- Children:
- 5eccc01
- Parents:
- 1f1d089
- Location:
- core/c
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
core/c/jbigi/build.sh
r1f1d089 r1850e89 16 16 mkdir -p lib/ 17 17 mkdir -p bin/local 18 VER=4. 2.418 VER=4.3.1 19 19 20 20 if [ "$1" != "dynamic" -a ! -d gmp-$VER ] 21 21 then 22 TAR=gmp-$VER.tar. bz222 TAR=gmp-$VER.tar.lzma 23 23 if [ ! -f $TAR ] 24 24 then 25 echo "GMP tarball $TAR not found. You must download it from http://gmplib.org/"26 exit 125 echo "Downloading ftp://ftp.gmplib.org/pub/gmp-4.3.1/gmp-4.3.1.tar.lzma" 26 wget ftp://ftp.gmplib.org/pub/gmp-4.3.1/gmp-4.3.1.tar.lzma 27 27 fi 28 28 … … 30 30 31 31 echo "Extracting GMP..." 32 tar -x jf gmp-$VER.tar.bz232 tar -xf gmp-$VER.tar.lzma --lzma 33 33 fi 34 34 … … 43 43 ../../gmp-$VER/configure --with-pic;; 44 44 *) 45 ../../gmp-$VER/configure ;;45 ../../gmp-$VER/configure --with-pic;; 46 46 esac 47 47 make … … 55 55 cd ../.. 56 56 57 I2P=~/i2p 57 I2P=~/i2p/i2p 58 58 if [ ! -f $I2P/lib/i2p.jar ] 59 59 then -
core/c/jcpuid/build.sh
r1f1d089 r1850e89 38 38 COMPILEFLAGS="-fPIC -Wall" 39 39 INCLUDES="-I. -Iinclude -I$JAVA_HOME/include -I$JAVA_HOME/include/linux" 40 LINKFLAGS="-shared - static -static-libgcc -Wl,-soname,libjcpuid-x86-linux.so"40 LINKFLAGS="-shared -Wl,-soname,libjcpuid-x86-linux.so" 41 41 LIBFILE="lib/freenet/support/CPUInformation/libjcpuid-x86-linux.so";; 42 42 esac … … 44 44 echo "Compiling C code..." 45 45 rm -f $LIBFILE 46 $CC $ LINKFLAGS $INCLUDES src/*.c -o $LIBFILE46 $CC $COMPILEFLAGS $LINKFLAGS $INCLUDES src/*.c -o $LIBFILE 47 47 strip $LIBFILE 48 48 echo Built $LIBFILE
Note: See TracChangeset
for help on using the changeset viewer.