summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-11-02 18:46:39 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-11-02 18:46:39 -0400
commit43ec750b7594dc62f815185763a9f0b4e68f44df (patch)
tree95be894d33cb3997b801cdfa024c1e0bf90e9009 /SConstruct
parent1ec0312d27a0bc04d1fbef89177a694828afd670 (diff)
downloadgpsd-43ec750b7594dc62f815185763a9f0b4e68f44df.tar.gz
This appears to nuke the carnivorous config bug.
OK, so nuking SCons temp directories behind SCons's back is a Bad Idea. It could have recovered more gracefully.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct32
1 files changed, 2 insertions, 30 deletions
diff --git a/SConstruct b/SConstruct
index 050b61b0..61b8efd6 100644
--- a/SConstruct
+++ b/SConstruct
@@ -619,34 +619,7 @@ if not config.CheckDefine("TIOCMIWAIT", "sys/ioctl.h"):
announce("Forcing pps=no (TIOCMIWAIT not available)")
env["pps"] = False
-confdefs.append('''
-/*
- __BIG_ENDIAN__ and __LITTLE_ENDIAN__ are define in some gcc versions
- only, probably depending on the architecture. Try to use endian.h if
- the gcc way fails - endian.h also doesn not seem to be available on all
- platforms.
-*/
-#ifdef __BIG_ENDIAN__
-#define WORDS_BIGENDIAN 1
-#else /* __BIG_ENDIAN__ */
-#ifdef __LITTLE_ENDIAN__
-#undef WORDS_BIGENDIAN
-#else
-#ifdef BSD
-#include <sys/endian.h>
-#else
-#include <endian.h>
-#endif
-#if __BYTE_ORDER == __BIG_ENDIAN
-#define WORDS_BIGENDIAN 1
-#elif __BYTE_ORDER == __LITTLE_ENDIAN
-#undef WORDS_BIGENDIAN
-#else
-#error "unable to determine endianess!"
-#endif /* __BYTE_ORDER */
-#endif /* __LITTLE_ENDIAN__ */
-#endif /* __BIG_ENDIAN__ */
-
+confdefs.append('''\
/* Some libcs do not have strlcat/strlcpy. Local copies are provided */
#ifndef HAVE_STRLCAT
# ifdef __cplusplus
@@ -1268,8 +1241,7 @@ build = env.Alias('build', [libraries, binaries, python_built_extensions, "gpsd.
env.Clean(build,
map(glob.glob,("*.[oa]", "*.os", "*.os.*", "*.gcno", "*.pyc", "gps/*.pyc")) + \
generated_sources + \
- map(lambda f: f[:-3], templated) + \
- [".sconf_temp"])
+ map(lambda f: f[:-3], templated))
env.Default(*build)
if qt_env: