forked from freddy77/encfs4win
-
Notifications
You must be signed in to change notification settings - Fork 1
/
encfs.sh
executable file
·22 lines (21 loc) · 879 Bytes
/
encfs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
set -e
CROSS=i686-w64-mingw32
OUT=$PWD/out
cd encfs
if true; then
make distclean || true
autoreconf
export lt_cv_deplibs_check_method='pass_all'
#LDFLAGS="-L$OUT/lib -pg" CXXFLAGS="-pg -fprofile" CFLAGS="-pg -fprofile" CPPFLAGS="-I$OUT/include" ./configure --prefix=$OUT --with-boost=$OUT --without-libiconv-prefix --without-libintl-prefix --host=i586-mingw32msvc
LDFLAGS=-L$OUT/lib CPPFLAGS=-I$OUT/include ./configure --prefix=$OUT --with-boost=$OUT --without-libiconv-prefix --without-libintl-prefix --host=$CROSS
fi
cd encfs
rm -f encfs.exe encfsctl.exe libencfsall.la
make encfs.exe encfsw.exe encfsctl.exe
test -r .libs/libencfsall-1.dll
DLL=$($CROSS-objdump -p .libs/libencfsall-1.dll | grep '^Name ' | sed 's/.*encfs/encfs/')
cp .libs/encfs.exe .libs/encfsw.exe .libs/encfsctl.exe $OUT/bin
cp .libs/libencfsall-1.dll $OUT/bin/$DLL
cd ../..
echo encfs ok