- #!/bin/bash
- set -e
- build_dir=$1
- # Change to source directory
- cd sources/zlib
- # Configure with prefix and libdir variables
- ./configure --prefix=${PREFIX} --libdir=${LIBDIR}
- # Build with all available threads for parallel compilation
- make -j$(nproc)
- echo "Build completed successfully."
|