summaryrefslogtreecommitdiffstats
path: root/compile.sh
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-07-17 09:34:41 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2008-07-17 09:34:41 +0200
commite6a3179462f67ee6593c7c986b09f9927f6f0f76 (patch)
tree20177f669302b7a91f5a546b4bea71c2974696ae /compile.sh
parent2bc44055cf29ba82c7907773ece0eb13dfc09955 (diff)
Cleanup compile.sh script
Diffstat (limited to 'compile.sh')
-rwxr-xr-xcompile.sh19
1 files changed, 2 insertions, 17 deletions
diff --git a/compile.sh b/compile.sh
index a64c57e..d6b4667 100755
--- a/compile.sh
+++ b/compile.sh
@@ -5,9 +5,7 @@
VER_E2FSPROGS=
VER_PROGSREISERFS=0.3.1-rc8
VER_NTFSPROGS=2.0.0
-#VER_LIBEWF=20080322
VER_LIBEWF=20080501
-#VER_LIBEWF=
crosscompile_target=
prefix=/usr/
if [ "$CC" = "gcc295" ];
@@ -21,25 +19,12 @@ else
compiledir=$1
if [ "$1" != "$CC" ];
then
- VER_E2FSPROGS=1.40.10
-# VER_E2FSPROGS=1.40.7
+ VER_E2FSPROGS=1.41.0
crosscompile_target=$1
TESTDISKCC=$crosscompile_target-gcc
-# CC="$crosscompile_target-gcc -mno-cygwin"
- export CC
fi
fi
prefix=/usr/$crosscompile_target
-LD=ld
-AR=ar
-if [ "X$crosscompile_target" = "Xpowerpc-apple-darwin" ];
-then
- AR=$crosscompile_target-ar
- export RANLIB=powerpc-apple-darwin-ranlib
-else
- export LD
-fi
-export AR
LYNX=links
LIBEXT=$compiledir/e2fsprogs-$VER_E2FSPROGS/lib/ext2fs/libext2fs.a
LIBNTFS=$compiledir/ntfsprogs-$VER_NTFSPROGS/libntfs/.libs/libntfs.a
@@ -78,7 +63,7 @@ then
then
rm -f $compiledir/Makefile
cd $compiledir/e2fsprogs-$VER_E2FSPROGS
- CC=$TESTDISKCC CFLAGS="$CFLAGS -DOMIT_COM_ERR" ./configure --host=$crosscompile_target --prefix=$prefix
+ CC=$TESTDISKCC CFLAGS="$CFLAGS -g -O2 -DOMIT_COM_ERR" ./configure --host=$crosscompile_target --prefix=$prefix
cd $pwd_saved
fi
fi