diff options
author | John Tytgat <joty@netsurf-browser.org> | 2008-03-20 15:13:52 +0000 |
---|---|---|
committer | John Tytgat <joty@netsurf-browser.org> | 2008-03-20 15:13:52 +0000 |
commit | dfd26a6ca893db5ee7e6729ec85abe8cda0f7967 (patch) | |
tree | d21a0fb1422a8f6ba00cc8bceb52b245a57dc1fa /Makefile | |
parent | d7c204b8a0fc87d83c147e4c603f446ade846a35 (diff) | |
download | netsurf-dfd26a6ca893db5ee7e6729ec85abe8cda0f7967.tar.gz netsurf-dfd26a6ca893db5ee7e6729ec85abe8cda0f7967.tar.bz2 |
Nicer workaround for native RISC OS builders.
svn path=/trunk/netsurf/; revision=3997
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -24,13 +24,19 @@ all: all-program # Determine host type -# NOTE: Currently, this is broken on RISC OS due to what appear to -# be bugs in UnixLib's pipe()/dup2() implementations. Until these -# are fixed and a new build of make is available, manually hardcode -# this to "riscos" (sans quotes). Please remember to change it back -# to "$(shell uname -s)" (sans quotes) again before committing any -# Makefile changes. +# NOTE: Currently, this is broken on RISC OS due to what appear to be bugs +# in UnixLib's pipe()/dup2() implementations. +# When you don't have 'uname' available, you will see: +# File 'uname' not found +# but when you do, you will see: +# RISC OS +# In both cases HOST make variable is empty and we recover from that by +# assuming we're building on RISC OS. HOST := $(shell uname -s) +ifeq ($(HOST),) +HOST := riscos +$(warning Build platform determination failed but that's a known problem for RISC OS so we're assuming a native RISC OS build.) +endif ifeq ($(HOST),riscos) # Build happening on RO platform, default target is RO backend |