build.sh 289 B

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