* [PATCH 3/6] [DJGPP] libbacktrace/configure.ac: specify that DJGPP do not have mmap()
@ 2015-12-05 17:14 Andris Pavenis
2015-12-10 22:31 ` Jeff Law
0 siblings, 1 reply; 2+ messages in thread
From: Andris Pavenis @ 2015-12-05 17:14 UTC (permalink / raw)
To: GCC Patches
[-- Attachment #1: Type: text/plain, Size: 429 bytes --]
Patch specifies that DJGPP do not have mmap() even when sys/mman.h is available.
libbacktrace is perhaps currently unusable for DJGPP but otherwise mmap() usability
misdetection breaks cross-compiler build for DJGPP target (for example Linux hosted
cross-compiler)
Andris
2015-12-05 Andris Pavenis <andris.pavenis@iki.fi>
* configure.ac: Specify that DJGPP do not have mmap even when sys/mman.h exists
* configure: Regenerate
[-- Attachment #2: 0003-DJGPP-libbacktrace-configure.ac-specify-that-DJGPP-d.patch --]
[-- Type: text/x-patch, Size: 1509 bytes --]
From 5fb05d0ae112ae1c938c2edf94b8dff8cd5dd1d6 Mon Sep 17 00:00:00 2001
From: Andris Pavenis <andris.pavenis@iki.fi>
Date: Tue, 24 Nov 2015 20:22:52 +0200
Subject: [PATCH 3/6] [DJGPP] libbacktrace/configure.ac: specify that DJGPP do not have mmap()
---
libbacktrace/configure | 3 ++-
libbacktrace/configure.ac | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/libbacktrace/configure b/libbacktrace/configure
index f8adc83..015c944 100755
--- a/libbacktrace/configure
+++ b/libbacktrace/configure
@@ -12301,9 +12301,10 @@ else
# simply assume that if we have mman.h, we have mmap.
have_mmap=yes
case "${host}" in
- spu-*-*)
+ spu-*-*|*-*-msdosdjgpp)
# The SPU does not have mmap, but it has a sys/mman.h header file
# containing "mmap_eaddr" and the mmap flags, confusing the test.
+ # DJGPP also has sys/man.h, but no mmap
have_mmap=no ;;
esac
else
diff --git a/libbacktrace/configure.ac b/libbacktrace/configure.ac
index 33866e9..7a0a157 100644
--- a/libbacktrace/configure.ac
+++ b/libbacktrace/configure.ac
@@ -267,9 +267,10 @@ else
# simply assume that if we have mman.h, we have mmap.
have_mmap=yes
case "${host}" in
- spu-*-*)
+ spu-*-*|*-*-msdosdjgpp)
# The SPU does not have mmap, but it has a sys/mman.h header file
# containing "mmap_eaddr" and the mmap flags, confusing the test.
+ # DJGPP also has sys/man.h, but no mmap
have_mmap=no ;;
esac
else
--
2.4.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 3/6] [DJGPP] libbacktrace/configure.ac: specify that DJGPP do not have mmap()
2015-12-05 17:14 [PATCH 3/6] [DJGPP] libbacktrace/configure.ac: specify that DJGPP do not have mmap() Andris Pavenis
@ 2015-12-10 22:31 ` Jeff Law
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Law @ 2015-12-10 22:31 UTC (permalink / raw)
To: Andris Pavenis, GCC Patches
On 12/05/2015 10:14 AM, Andris Pavenis wrote:
> Patch specifies that DJGPP do not have mmap() even when sys/mman.h is
> available.
> libbacktrace is perhaps currently unusable for DJGPP but otherwise
> mmap() usability
> misdetection breaks cross-compiler build for DJGPP target (for example
> Linux hosted
> cross-compiler)
>
> Andris
>
> 2015-12-05 Andris Pavenis <andris.pavenis@iki.fi>
>
> * configure.ac: Specify that DJGPP do not have mmap even when sys/mman.h
> exists
> * configure: Regenerate
OK.
jeff
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-12-10 22:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-05 17:14 [PATCH 3/6] [DJGPP] libbacktrace/configure.ac: specify that DJGPP do not have mmap() Andris Pavenis
2015-12-10 22:31 ` Jeff Law
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).