nikodream/esy.lock/overrides/d2b1c9f139f83685b7ed6db48df6a440/esy/test.sh
Kaustubh Maske Patil 4194ae6fda initial commit
2025-05-06 19:31:10 +05:30

32 lines
528 B
Bash
Executable File
Generated

pwd
mkdir -p _test
cd _test
if which x86_64-w64-mingw32-gcc; then
CC=x86_64-w64-mingw32-gcc
else
CC=gcc
fi
echo "Using compiler: $CC"
echo "include..."
#ls -a $INCLUDE
echo "lib.."
#ls -a $cur__lib
$CC ./../../esy/test.c -o ./test.exe -I$OPENSSL_INCLUDE_PATH -L$OPENSSL_LIB_PATH -lssl -lcrypto
#export PATH=$PATH:$cur__bin:$cur__lib
#export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$cur__lib
#echo "Augmented path: $PATH"
echo "Copying binaries..."
#cp $cur__bin/*.dll .
echo "Test executable path:"
ls -a .
./test.exe