diff options
author | riastradh <riastradh> | 2013-05-10 00:42:41 +0000 |
---|---|---|
committer | riastradh <riastradh> | 2013-05-10 00:42:41 +0000 |
commit | 3918168f972fd0415252f393a1ac1de0abbb907d (patch) | |
tree | e73d7240134b7b8f7b96e042e72e4bb871caf5e5 /shells | |
parent | 9fcf8a3ec822552a2082acf4cb0dbad6a970819c (diff) | |
download | pkgsrc-3918168f972fd0415252f393a1ac1de0abbb907d.tar.gz |
Fix bash cross-build on NetBSD by pre-answering autoconf run-tests.
ok agc
Diffstat (limited to 'shells')
-rw-r--r-- | shells/bash/Makefile | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/shells/bash/Makefile b/shells/bash/Makefile index 9dd13c16d5d..35711e955d8 100644 --- a/shells/bash/Makefile +++ b/shells/bash/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.56 2013/02/12 23:31:40 tcort Exp $ +# $NetBSD: Makefile,v 1.57 2013/05/10 00:42:41 riastradh Exp $ BASH_VERSION= 4.2 @@ -85,6 +85,21 @@ BUILDLINK_API_DEPENDS.readline+= readline>=6.0 .include "../../devel/readline/buildlink3.mk" .endif +.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) && ${OPSYS} == "NetBSD" +CONFIGURE_ENV+= CC_FOR_BUILD=${NATIVE_CC:Q} +CONFIGURE_ENV+= ac_cv_c_long_long=yes +CONFIGURE_ENV+= ac_cv_c_long_double=yes +CONFIGURE_ENV+= bash_cv_type_rlimit=yes +CONFIGURE_ENV+= bash_cv_getcwd_malloc=yes +CONFIGURE_ENV+= bash_cv_func_sigsetjmp=yes +CONFIGURE_ENV+= bash_cv_printf_a_format=yes +CONFIGURE_ENV+= bash_cv_job_control_missing=present +CONFIGURE_ENV+= bash_cv_sys_named_pipes=present +CONFIGURE_ENV+= bash_cv_unusable_rtsigs=no +CONFIGURE_ENV+= bash_cv_func_ctype_nonascii=yes +CONFIGURE_ENV+= bash_cv_wexitstatus_offset=8 +.endif + post-install: ${INSTALL_MAN} ${WRKSRC}/doc/bash.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 ${INSTALL_MAN} ${WRKSRC}/doc/bashbug.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 |