Fixed libssh2 build error
This commit is contained in:
parent
5da8a85583
commit
ae32561391
|
@ -63,7 +63,7 @@ export LDFLAGS="-m32"
|
||||||
wget -c $OPENSSL
|
wget -c $OPENSSL
|
||||||
tar zxvf openssl-1.0.2f.tar.gz
|
tar zxvf openssl-1.0.2f.tar.gz
|
||||||
cd openssl-1.0.2f/
|
cd openssl-1.0.2f/
|
||||||
CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./Configure --prefix=$PREFIX linux-elf
|
CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./Configure --prefix=$PREFIX linux-elf shared
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
#
|
#
|
||||||
|
@ -72,7 +72,7 @@ export LDFLAGS="-m32"
|
||||||
wget -c $SQLITE3
|
wget -c $SQLITE3
|
||||||
tar zxvf sqlite-autoconf-3100200.tar.gz
|
tar zxvf sqlite-autoconf-3100200.tar.gz
|
||||||
cd sqlite-autoconf-3100200/
|
cd sqlite-autoconf-3100200/
|
||||||
CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./configure --prefix=$PREFIX --enable-static --disable-shared
|
CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./configure --prefix=$PREFIX --enable-static --enable-shared
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
#
|
#
|
||||||
|
@ -85,29 +85,6 @@ export LDFLAGS="-m32"
|
||||||
CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./configure --without-libgcrypt --with-openssl --without-wincng --prefix=$PREFIX --enable-static --disable-shared
|
CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER -m32" CXX="$CXX_COMPILER -m32" ./configure --without-libgcrypt --with-openssl --without-wincng --prefix=$PREFIX --enable-static --disable-shared
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
if [ -f $PREFIX/lib/pkgconfig/libssh2.pc ] ; then
|
|
||||||
echo "$PREFIX/lib/pkgconfig/libssh2.pc"
|
|
||||||
else
|
|
||||||
echo "################################" > $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "# libssh2 installation details #" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "#################################" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "prefix=$PREFIX" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "exec_prefix=$PREFIX" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "libdir=$PREFIX/lib" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "includedir=$PREFIX/include" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "Name: libssh2" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "URL: http://www.libssh2.org/" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "Description: Library for SSH-based communication" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "Version: 1.6.0" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "Requires.private:" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "Libs: -L$PREFIX/lib -lssh2 -m32 -lssl -lcrypto -lz" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "Libs.private: -m32 -lssl -lcrypto -lz" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "Cflags: -I$PREFIX/include" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "$PREFIX/lib/pkgconfig/libssh2.pc created!"
|
|
||||||
cp -rf include/*.h $PREFIX/include
|
|
||||||
fi
|
|
||||||
#
|
#
|
||||||
#cleaning
|
#cleaning
|
||||||
cd ..
|
cd ..
|
||||||
|
|
|
@ -59,7 +59,7 @@ cd $BUILD_DIRECTORY
|
||||||
wget -c $OPENSSL
|
wget -c $OPENSSL
|
||||||
tar zxvf openssl-1.0.2f.tar.gz
|
tar zxvf openssl-1.0.2f.tar.gz
|
||||||
cd openssl-1.0.2f/
|
cd openssl-1.0.2f/
|
||||||
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./Configure --prefix=$PREFIX linux-x86_64
|
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./Configure --prefix=$PREFIX linux-x86_64 shared
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
#
|
#
|
||||||
|
@ -68,7 +68,7 @@ cd $BUILD_DIRECTORY
|
||||||
wget -c $SQLITE3
|
wget -c $SQLITE3
|
||||||
tar zxvf sqlite-autoconf-3100200.tar.gz
|
tar zxvf sqlite-autoconf-3100200.tar.gz
|
||||||
cd sqlite-autoconf-3100200/
|
cd sqlite-autoconf-3100200/
|
||||||
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./configure --prefix=$PREFIX --enable-static --disable-shared
|
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./configure --prefix=$PREFIX --enable-static --enable-shared
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
#
|
#
|
||||||
|
@ -81,29 +81,6 @@ cd $BUILD_DIRECTORY
|
||||||
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./configure --without-libgcrypt --with-openssl --without-wincng --prefix=$PREFIX --enable-static --disable-shared
|
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/ LD_LIBRARY_PATH=$PREFIX/lib/ CC="$C_COMPILER" CXX="$CXX_COMPILER" ./configure --without-libgcrypt --with-openssl --without-wincng --prefix=$PREFIX --enable-static --disable-shared
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
if [ -f $PREFIX/lib/pkgconfig/libssh2.pc ] ; then
|
|
||||||
echo "$PREFIX/lib/pkgconfig/libssh2.pc"
|
|
||||||
else
|
|
||||||
echo "################################" > $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "# libssh2 installation details #" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "#################################" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "prefix=$PREFIX" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "exec_prefix=$PREFIX" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "libdir=$PREFIX/lib" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "includedir=$PREFIX/include" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "Name: libssh2" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "URL: http://www.libssh2.org/" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "Description: Library for SSH-based communication" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "Version: 1.6.0" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "Requires.private: zlib" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "Libs: -L$PREFIX/lib -lssh2 -lssl -lcrypto -lz" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "Libs.private: -lssl -lcrypto -lz" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "Cflags: -I$PREFIX/include" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "$PREFIX/lib/pkgconfig/libssh2.pc created!"
|
|
||||||
cp -rf include/*.h $PREFIX/include
|
|
||||||
fi
|
|
||||||
#
|
#
|
||||||
#cleaning
|
#cleaning
|
||||||
cd ..
|
cd ..
|
||||||
|
|
|
@ -56,7 +56,7 @@ cd $BUILD_DIRECTORY
|
||||||
wget -c $OPENSSL
|
wget -c $OPENSSL
|
||||||
tar zxvf openssl-1.0.2f.tar.gz
|
tar zxvf openssl-1.0.2f.tar.gz
|
||||||
cd openssl-1.0.2f/
|
cd openssl-1.0.2f/
|
||||||
./Configure mingw --cross-compile-prefix=$HOST- --prefix=$PREFIX
|
./Configure mingw --cross-compile-prefix=$HOST- --prefix=$PREFIX shared
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
#
|
#
|
||||||
|
@ -65,7 +65,7 @@ cd $BUILD_DIRECTORY
|
||||||
wget -c $SQLITE3
|
wget -c $SQLITE3
|
||||||
tar zxvf sqlite-autoconf-3100200.tar.gz
|
tar zxvf sqlite-autoconf-3100200.tar.gz
|
||||||
cd sqlite-autoconf-3100200/
|
cd sqlite-autoconf-3100200/
|
||||||
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared
|
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --enable-shared
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
#
|
#
|
||||||
|
@ -78,29 +78,6 @@ cd $BUILD_DIRECTORY
|
||||||
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --without-libgcrypt --with-openssl --without-wincng --prefix=$PREFIX --host=$HOST --enable-static --disable-shared
|
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --without-libgcrypt --with-openssl --without-wincng --prefix=$PREFIX --host=$HOST --enable-static --disable-shared
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
if [ -f $PREFIX/lib/pkgconfig/libssh2.pc ] ; then
|
|
||||||
echo "$PREFIX/lib/pkgconfig/libssh2.pc"
|
|
||||||
else
|
|
||||||
echo "################################" > $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "# libssh2 installation details #" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "#################################" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "prefix=$PREFIX" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "exec_prefix=$PREFIX" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "libdir=$PREFIX/lib" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "includedir=$PREFIX/include" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "Name: libssh2" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "URL: http://www.libssh2.org/" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "Description: Library for SSH-based communication" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "Version: 1.6.0" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "Requires.private: zlib" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "Libs: -L$PREFIX/lib -lssh2 -lssl -lcrypto -lz -lws2_32" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "Libs.private: -lssl -lcrypto -lz -lws2_32" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "Cflags: -I$PREFIX/include" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "$PREFIX/lib/pkgconfig/libssh2.pc created!"
|
|
||||||
cp -rf include/*.h $PREFIX/include
|
|
||||||
fi
|
|
||||||
#
|
#
|
||||||
#cleaning
|
#cleaning
|
||||||
cd ..
|
cd ..
|
||||||
|
|
|
@ -56,7 +56,7 @@ cd $BUILD_DIRECTORY
|
||||||
wget -c $OPENSSL
|
wget -c $OPENSSL
|
||||||
tar zxvf openssl-1.0.2f.tar.gz
|
tar zxvf openssl-1.0.2f.tar.gz
|
||||||
cd openssl-1.0.2f/
|
cd openssl-1.0.2f/
|
||||||
./Configure mingw64 --cross-compile-prefix=$HOST- --prefix=$PREFIX
|
./Configure mingw64 --cross-compile-prefix=$HOST- --prefix=$PREFIX shared
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
#
|
#
|
||||||
|
@ -65,7 +65,7 @@ cd $BUILD_DIRECTORY
|
||||||
wget -c $SQLITE3
|
wget -c $SQLITE3
|
||||||
tar zxvf sqlite-autoconf-3100200.tar.gz
|
tar zxvf sqlite-autoconf-3100200.tar.gz
|
||||||
cd sqlite-autoconf-3100200/
|
cd sqlite-autoconf-3100200/
|
||||||
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared
|
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --enable-shared
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
#
|
#
|
||||||
|
@ -78,29 +78,6 @@ cd $BUILD_DIRECTORY
|
||||||
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared
|
CC=$HOST-gcc CXX=$HOST-g++ AR=$HOST-ar RANLIB=$HOST-ranlib ./configure --prefix=$PREFIX --host=$HOST --enable-static --disable-shared
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
if [ -f $PREFIX/lib/pkgconfig/libssh2.pc ] ; then
|
|
||||||
echo "$PREFIX/lib/pkgconfig/libssh2.pc"
|
|
||||||
else
|
|
||||||
echo "################################" > $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "# libssh2 installation details #" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "#################################" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "prefix=$PREFIX" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "exec_prefix=$PREFIX" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "libdir=$PREFIX/lib" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "includedir=$PREFIX/include" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "Name: libssh2" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "URL: http://www.libssh2.org/" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "Description: Library for SSH-based communication" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "Version: 1.6.0" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "Requires.private: zlib" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "Libs: -L$PREFIX/lib -lssh2 -lssl -lcrypto -lz -lws2_32" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "Libs.private: -lssl -lcrypto -lz -lws2_32" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "Cflags: -I$PREFIX/include" >> $PREFIX/lib/pkgconfig/libssh2.pc
|
|
||||||
echo "$PREFIX/lib/pkgconfig/libssh2.pc created!"
|
|
||||||
cp -rf include/*.h $PREFIX/include
|
|
||||||
fi
|
|
||||||
#
|
#
|
||||||
#cleaning
|
#cleaning
|
||||||
cd ..
|
cd ..
|
||||||
|
|
Loading…
Reference in New Issue
Block a user