#!/bin/sh -e
[ -z "$DEBUG" ] || set -x
echo "########## libopenssl-1.1.1l: configure ##########"
cd /home/ych/rk3568/buildroot
(cd /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/libopenssl-1.1.1l; ac_cv_lbl_unaligned_fail=yes ac_cv_func_mmap_fixed_mapped=yes ac_cv_func_memcmp_working=yes ac_cv_have_decl_malloc=yes gl_cv_func_malloc_0_nonnull=yes ac_cv_func_malloc_0_nonnull=yes ac_cv_func_calloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes lt_cv_sys_lib_search_path_spec="" ac_cv_c_bigendian=no  PATH="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin:/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" AR="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin/aarch64-buildroot-linux-gnu-ar" AS="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin/aarch64-buildroot-linux-gnu-as" LD="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin/aarch64-buildroot-linux-gnu-ld" NM="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin/aarch64-buildroot-linux-gnu-nm" CC="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin/aarch64-buildroot-linux-gnu-gcc" GCC="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin/aarch64-buildroot-linux-gnu-gcc" CPP="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin/aarch64-buildroot-linux-gnu-cpp" CXX="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin/aarch64-buildroot-linux-gnu-g++" FC="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin/aarch64-buildroot-linux-gnu-gfortran" F77="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin/aarch64-buildroot-linux-gnu-gfortran" RANLIB="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin/aarch64-buildroot-linux-gnu-ranlib" READELF="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin/aarch64-buildroot-linux-gnu-readelf" STRIP="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin/aarch64-buildroot-linux-gnu-strip" OBJCOPY="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin/aarch64-buildroot-linux-gnu-objcopy" OBJDUMP="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin/aarch64-buildroot-linux-gnu-objdump" AR_FOR_BUILD="/usr/bin/ar" AS_FOR_BUILD="/usr/bin/as" CC_FOR_BUILD="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin/ccache /usr/bin/gcc" GCC_FOR_BUILD="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin/ccache /usr/bin/gcc" CXX_FOR_BUILD="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin/ccache /usr/bin/g++" LD_FOR_BUILD="/usr/bin/ld" CPPFLAGS_FOR_BUILD="-I/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/include" CFLAGS_FOR_BUILD="-O2 -I/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/include" CXXFLAGS_FOR_BUILD="-O2 -I/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/include" LDFLAGS_FOR_BUILD="-L/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/lib -Wl,-rpath,/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/lib" FCFLAGS_FOR_BUILD="" DEFAULT_ASSEMBLER="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin/aarch64-buildroot-linux-gnu-as" DEFAULT_LINKER="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin/aarch64-buildroot-linux-gnu-ld" CPPFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" CFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os -g0 -D_FORTIFY_SOURCE=1" CXXFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os -g0 -D_FORTIFY_SOURCE=1" LDFLAGS="" FCFLAGS=" -Os -g0" FFLAGS=" -Os -g0" PKG_CONFIG="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/bin/pkg-config" STAGING_DIR="/home/ych/rk3568/buildroot/output/rockchip_rk3568/host/aarch64-buildroot-linux-gnu/sysroot" INTLTOOL_PERL=/usr/bin/perl ./Configure linux-aarch64 --prefix=/usr --openssldir=/etc/ssl -latomic threads shared  no-rc5 enable-camellia enable-mdc2 no-tests no-fuzz-libfuzzer no-fuzz-afl                        zlib-dynamic  )
/bin/sed -i -e "s#-march=[-a-z0-9] ##" -e "s#-mcpu=[-a-z0-9] ##g" /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/libopenssl-1.1.1l/Makefile
/bin/sed -i -e "s#-O[0-9sg]#-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os -g0 -D_FORTIFY_SOURCE=1#" /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/libopenssl-1.1.1l/Makefile
/bin/sed -i -e "s# build_tests##" /home/ych/rk3568/buildroot/output/rockchip_rk3568/build/libopenssl-1.1.1l/Makefile
