ksh: use _GNU_SOURCE on musl only.
This commit is contained in:
parent
931a41280f
commit
78f5ee9799
1 changed files with 3 additions and 4 deletions
|
@ -2,7 +2,7 @@
|
||||||
pkgname=ksh
|
pkgname=ksh
|
||||||
version=2012.08.01
|
version=2012.08.01
|
||||||
_debpkgver=93u+20120801
|
_debpkgver=93u+20120801
|
||||||
revision=3
|
revision=4
|
||||||
wrksrc=${pkgname}-${_debpkgver}
|
wrksrc=${pkgname}-${_debpkgver}
|
||||||
register_shell="/bin/ksh"
|
register_shell="/bin/ksh"
|
||||||
short_desc="AT&T's Korn shell (ksh93)"
|
short_desc="AT&T's Korn shell (ksh93)"
|
||||||
|
@ -17,6 +17,7 @@ build_options="static"
|
||||||
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
*-musl)
|
*-musl)
|
||||||
|
CFLAGS='-D_GNU_SOURCE'
|
||||||
post_extract() {
|
post_extract() {
|
||||||
# Don't rewrite xxx64 to xxx.
|
# Don't rewrite xxx64 to xxx.
|
||||||
sed -i '/define.*off_t/d' src/lib/libast/include/ast_std.h
|
sed -i '/define.*off_t/d' src/lib/libast/include/ast_std.h
|
||||||
|
@ -38,12 +39,10 @@ do_build() {
|
||||||
if [ "$build_option_static" ]; then
|
if [ "$build_option_static" ]; then
|
||||||
LDFLAGS+=" -static"
|
LDFLAGS+=" -static"
|
||||||
fi
|
fi
|
||||||
echo $CC
|
|
||||||
export SHELL=/bin/sh # bin/package breaks on bash
|
export SHELL=/bin/sh # bin/package breaks on bash
|
||||||
$SHELL bin/package make \
|
$SHELL bin/package make \
|
||||||
CC="${CC}" LDFLAGS="${LDFLAGS}" \
|
CC="${CC}" LDFLAGS="${LDFLAGS}" \
|
||||||
CFLAGS="${CFLAGS} -D_GNU_SOURCE" \
|
CFLAGS="${CFLAGS}" CCFLAGS="${CFLAGS}" \
|
||||||
CCFLAGS="${CFLAGS} -D_GNU_SOURCE" \
|
|
||||||
HOSTTYPE="$($SHELL bin/package host canon $XBPS_CROSS_TRIPLET)"
|
HOSTTYPE="$($SHELL bin/package host canon $XBPS_CROSS_TRIPLET)"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue