Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

Commit

Permalink
remove unnecessary parameters for make command
Browse files Browse the repository at this point in the history
using the names of compiler tools same way as they are used (without full path) for ffmpeg build
  • Loading branch information
alexcohn authored and tanersener committed Apr 1, 2020
1 parent 5a7fba3 commit 2dbfad6
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions build/android-openh264.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,22 +55,20 @@ make clean 2>/dev/null 1>/dev/null

make -j$(get_cpu_count) \
ARCH="$(get_toolchain_arch)" \
CC="${ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/${TOOLCHAIN}/bin/${CC}" \
CC="$CC" \
CFLAGS="$CFLAGS" \
CXX="${ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/${TOOLCHAIN}/bin/${CXX}" \
CXX="$CXX" \
CXXFLAGS="${CXXFLAGS}" \
LDFLAGS="$LDFLAGS" \
OS=android \
PREFIX="${BASEDIR}/prebuilt/android-$(get_target_build)/${LIB_NAME}" \
NDKLEVEL="${API}" \
NDKROOT="${ANDROID_NDK_ROOT}" \
NDK_TOOLCHAIN_VERSION=clang \
TOOLCHAINPREFIX=dummy_prefix \
TOOLCHAIN_NAME=dummy_name \
AR="${ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/${TOOLCHAIN}/bin/${AR}" \
AR="$AR" \
ASM_ARCH=${ASM_ARCH} \
TARGET="android-${API}" \
install-static || exit 1

# MANUALLY COPY PKG-CONFIG FILES
cp ${BASEDIR}/src/${LIB_NAME}/openh264-static.pc ${INSTALL_PKG_CONFIG_DIR}/openh264.pc || exit 1
cp ${BASEDIR}/src/${LIB_NAME}/openh264-static.pc ${INSTALL_PKG_CONFIG_DIR}/openh264.pc || exit 1

0 comments on commit 2dbfad6

Please sign in to comment.