Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- # Cross compile OPENssl
- export PATH="$PATH:/mnt/store-0/tims/ffmpeg-toolchain/mingw-w64-x86_64/bin"
- #set up compiler prefixes
- . gcc-prefix.sh
- setup_gnu_toolchain
- cd /mnt/store-0/tims/ffmpeg-win/ffmpeg-libs/openssl-1.0.0e
- echo "make distclean/clean..."
- make distclean
- make clean
- echo "configuring..."
- ./config \
- --prefix=/mnt/store-0/tims/ffmpeg-win/local-build \
- no-shared \
- mingw64 \
- configure_ok=$?
- if [ $configure_ok = 0 ] ; then
- echo "make..."
- make
- else
- echo "Config error....exiting"
- exit $configure_ok
- fi
- make_ok=$?
- # now install
- if [ $make_ok = 0 ] ; then
- echo "installing..."
- make install
- fi
- exit 0
- #notes
- had to comment out Line 872 in Configure otherwise it dies on changing the target to mingw
- This is a known issue.
- =================================
- gcc-prefix.sh
- =================================
- CROSS=x86_64-w64-mingw32-
- #link_with_cc=gcc
- setup_gnu_toolchain() {
- # vpx
- export CC=${CC:-${CROSS}gcc}
- export AR=${AR:-${CROSS}ar}
- export LD=${LD:-${CROSS}${link_with_cc:-ld}}
- export AS=${AS:-${CROSS}as}
- export STRIP=${STRIP:-${CROSS}strip}
- export NM=${NM:-${CROSS}nm}
- export AS_SFX=.s
- # various incl xvid
- export CXX=${CXX:-${CROSS}g++}
- export CPP=${CPP:-${CROSS}cpp}
- export RANLIB=${RANLIB:-${CROSS}ranlib}
- }
Advertisement
Add Comment
Please, Sign In to add comment