Skip to content

Instantly share code, notes, and snippets.

@shinchiro
Created February 18, 2017 21:50
Show Gist options
  • Save shinchiro/d48a11d62c1f2fe3eb7aee87309056d8 to your computer and use it in GitHub Desktop.
Save shinchiro/d48a11d62c1f2fe3eb7aee87309056d8 to your computer and use it in GitHub Desktop.
Compile MEGAcli
#!/bin/bash
export PATH="/shinchiro/build32/install/bin:$PATH"
export PKG_CONFIG_LIBDIR="/d/MSYS/mega-sdk/build/install/lib/pkgconfig"
export PKG_CONFIG="pkg-config --static"
INSTALL_PATH="/d/MSYS/mega-sdk/build/install"
# LDFLAGS='-static -lpthread'
./autogen.sh
./configure --disable-shared --enable-static --disable-silent-rules --without-openssl --with-cryptopp=$INSTALL_PATH --without-sodium --with-zlib=$INSTALL_PATH --with-sqlite=$INSTALL_PATH --without-cares --without-curl --with-winhttp=/d/MSYS/mega-sdk/build --without-freeimage --with-readline=$INSTALL_PATH --with-termcap=$INSTALL_PATH --prefix=$INSTALL_PATH && make -j9 && make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment