curl: Add debug build

This commit is contained in:
Ray Donnelly
2014-08-29 23:13:04 +01:00
parent 31c0555019
commit e33a4d9e2b

View File

@@ -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
}