c-ares: fiddle -D_FORTIFY_SOURCE=2 into CPPFLAGS.
This commit is contained in:
parent
ce514542a7
commit
dbbeb07c2c
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'c-ares'
|
# Template file for 'c-ares'
|
||||||
pkgname=c-ares
|
pkgname=c-ares
|
||||||
version=1.10.0
|
version=1.10.0
|
||||||
revision=2
|
revision=3
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
short_desc="C library that performs DNS requests and name resolves asynchronously"
|
short_desc="C library that performs DNS requests and name resolves asynchronously"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
|
@ -10,6 +10,14 @@ homepage="http://c-ares.haxx.se/"
|
||||||
distfiles="http://c-ares.haxx.se/download/$pkgname-$version.tar.gz"
|
distfiles="http://c-ares.haxx.se/download/$pkgname-$version.tar.gz"
|
||||||
checksum=3d701674615d1158e56a59aaede7891f2dde3da0f46a6d3c684e0ae70f52d3db
|
checksum=3d701674615d1158e56a59aaede7891f2dde3da0f46a6d3c684e0ae70f52d3db
|
||||||
|
|
||||||
|
pre_configure() {
|
||||||
|
case "$CFLAGS" in
|
||||||
|
*"-D_FORTIFY_SOURCE=2"*)
|
||||||
|
CFLAGS=${CFLAGS/-D_FORTIFY_SOURCE=2/}
|
||||||
|
CPPFLAGS+=" -D_FORTIFY_SOURCE=2"
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
c-ares-devel_package() {
|
c-ares-devel_package() {
|
||||||
depends="${sourcepkg}>=${version}_${revision}"
|
depends="${sourcepkg}>=${version}_${revision}"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
|
|
Loading…
Reference in New Issue