Overview
Artifact ID: | 728bbea1688d0bcf13eb52c11059cb06056f65da |
---|---|
Ticket: | 5ad1d9a23ca5a8462fb6058efdb8a56489c3ed0c
Makefile fails to run uname with GNU Make 3.82 |
User & Date: | anonymous 2011-06-13 21:23:11 |
Changes
- Appended to comment:
<hr /><i>anonymous claiming to be brecht added on 2011-06-13 21:23:11 UTC:</i><br /> Perhaps the following offers a solution: <verbatim> HOST_OS_CMD = uname -s BSD_HOST_OS = $($(HOST_OS_CMD):sh) GNU_HOST_OS = $(shell $(HOST_OS_CMD) ) HOST_OS = $(BSD_HOST_OS)$(GNU_HOST_OS) </verbatim> It works for GNU Make, as BSD_HOST_OS will be empty. I'm hoping GNU_HOST_OS would be empty when using BSD Make.