[Git][NTPsec/ntpsec][master] Use waf's endianness checks
Matt Selsky
gitlab at mg.gitlab.com
Mon Feb 6 05:51:07 UTC 2017
Matt Selsky pushed to branch master at NTPsec / ntpsec
Commits:
ffd3507d by Matt Selsky at 2017-02-06T00:47:04-05:00
Use waf's endianness checks
This should help with cross-compiling since it checks the destination instead
of the host.
- - - - -
1 changed file:
- wafhelpers/configure.py
Changes:
=====================================
wafhelpers/configure.py
=====================================
--- a/wafhelpers/configure.py
+++ b/wafhelpers/configure.py
@@ -1,6 +1,5 @@
from __future__ import print_function
-import sys
import os
from wafhelpers.probes \
import probe_header_with_prerequisites, probe_function_with_prerequisites
@@ -478,13 +477,9 @@ def cmd_configure(ctx, config):
"same sockets on alternate interfaces, required "
"by Linux at least")
- # These are required by the SHA1 code and various refclocks
- if sys.byteorder == "little":
- pass
- elif sys.byteorder == "big":
+ # These are required by various refclocks
+ if ctx.check_endianness() == "big":
ctx.define("WORDS_BIGENDIAN", 1)
- else:
- print("Can't determine byte order!")
from wafhelpers.check_vsprintfm import check_vsprintfm
check_vsprintfm(ctx)
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/ffd3507d31e1beaf417604945b3f5881e04393c4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170206/b9ff5a37/attachment.html>
More information about the vc
mailing list