From e33a4d9e2bfca5afce9ac75319f8dbede0528c26 Mon Sep 17 00:00:00 2001 From: Ray Donnelly Date: Fri, 29 Aug 2014 23:13:04 +0100 Subject: [PATCH] curl: Add debug build --- mingw-w64-curl/PKGBUILD | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/mingw-w64-curl/PKGBUILD b/mingw-w64-curl/PKGBUILD index 4edddc5e56..5e491bd167 100644 --- a/mingw-w64-curl/PKGBUILD +++ b/mingw-w64-curl/PKGBUILD @@ -17,7 +17,7 @@ depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs" "${MINGW_PACKAGE_PREFIX}-openssl" "${MINGW_PACKAGE_PREFIX}-zlib" "${MINGW_PACKAGE_PREFIX}-rtmpdump") -options=('staticlibs' 'strip') +options=('staticlibs') # '!strip' 'debug') source=("$url/download/${_realname}-$pkgver.tar.bz2"{,.asc} "0001-curl-relocation.patch") md5sums=('95c627abcf6494f5abe55effe7cd6a57' @@ -32,6 +32,12 @@ prepare() { } build() { + local -a extra_config + if check_option "debug" "y"; then + extra_config+=( --enable-debug ) + else + extra_config+=( --disable-debug ) + fi mkdir -p "${srcdir}/build-${CARCH}" cd "${srcdir}/build-${CARCH}" "${srcdir}"/${_realname}-${pkgver}/configure \ @@ -40,7 +46,8 @@ build() { --host=${MINGW_CHOST} \ --target=${MINGW_CHOST} \ --with-ca-bundle=${MINGW_PREFIX}/ssl/certs/ca-bundle.crt \ - --without-random + --without-random \ + "${extra_config[@]}" make }