summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2017-11-30 15:22:46 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2017-11-30 15:32:37 -0800
commit93dc7ae4a419e444e1a0daa4686552fdab7f3357 (patch)
tree442941d0a13b2e33565198a11bee1993b962355f
parentad99550610542f8333dc964b3bef2b9e6ad7b0f6 (diff)
downloademacs-93dc7ae4a419e444e1a0daa4686552fdab7f3357.tar.gz
Port better to QNX
Problem reported by Elad Lahav on emacs-devel. * configure.ac: On QNX, default CC to qcc (a GCC wrapper), and default LDFLAGS to -N2MB so that the initial stack size is not too small. Also, fix misspelling of ‘qnxnto’.
-rw-r--r--configure.ac4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index f1ca7cc81b7..2df5679f1d5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -702,7 +702,9 @@ case "${canonical}" in
## QNX Neutrino
*-nto-qnx* )
opsys=qnxnto
+ test -z "$CC" && CC=qcc
CFLAGS="$CFLAGS -D__NO_EXT_QNX"
+ LDFLAGS="-N2MB $LDFLAGS"
;;
## Intel 386 machines where we don't care about the manufacturer.
@@ -2218,7 +2220,7 @@ test "$CANNOT_DUMP" = yes ||
case "$opsys" in
## darwin ld insists on the use of malloc routines in the System framework.
darwin | mingw32 | nacl | sol2-10) ;;
- cygwin | qnxto | freebsd)
+ cygwin | qnxnto | freebsd)
hybrid_malloc=yes
system_malloc= ;;
*) test "$ac_cv_func_sbrk" = yes && system_malloc=$emacs_cv_sanitize_address;;