<html lang='en'>
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<title>
GitLab
</title>
</meta>
</head>
<style>
img {
max-width: 100%;
height: auto;
}
p.details {
font-style:italic;
color:#777
}
.footer p {
font-size:small;
color:#777
}
pre.commit-message {
white-space: pre-wrap;
}
.file-stats a {
text-decoration: none;
}
.file-stats .new-file {
color: #090;
}
.file-stats .deleted-file {
color: #B00;
}
</style>
<body>
<div class='content'>
<h3>
Amar Takhar pushed to branch master
at <a href="https://gitlab.com/NTPsec/ntpsec">NTPsec / ntpsec</a>
</h3>
<h4>
Commits:
</h4>
<ul>
<li>
<strong><a href="https://gitlab.com/NTPsec/ntpsec/commit/c3fc50c9b93ad77c06c68e5c3868cc196909f159">c3fc50c9</a></strong>
<div>
<span>by Amar Takhar</span>
<i>at 2016-01-13T23:15:45-05:00</i>
</div>
<pre class='commit-message'>Add (very) basic support for cross compiling.
You will need to edit build/config.h by hand and possibly build/c4che/_cache.py
To figure out what is missing diff these files from a non-cross build.</pre>
</li>
</ul>
<h4>3 changed files:</h4>
<ul>
<li class='file-stats'>
<a href='#diff-0'>
pylib/compiler.py
</a>
</li>
<li class='file-stats'>
<a href='#diff-1'>
pylib/configure.py
</a>
</li>
<li class='file-stats'>
<a href='#diff-2'>
wscript
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id='diff-0'>
<a href='https://gitlab.com/NTPsec/ntpsec/commit/c3fc50c9b93ad77c06c68e5c3868cc196909f159#diff-0'>
<strong>
pylib/compiler.py
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/pylib/compiler.py
</span><span style="color: #000000;background-color: #ddffdd">+++ b/pylib/compiler.py
</span><span style="color: #aaaaaa">@@ -29,6 +29,9 @@ int main(void) {
</span>
def check_compiler(ctx):
<span style="color: #000000;background-color: #ddffdd">+ if ctx.env.ENABLE_CROSS:
+ return
+
</span> defines = {
1: ("COMPILER_CLANG", "clang"),
2: ("COMPILER_ICC", "ICC"),
</code></pre>
<br>
</li>
<li id='diff-1'>
<a href='https://gitlab.com/NTPsec/ntpsec/commit/c3fc50c9b93ad77c06c68e5c3868cc196909f159#diff-1'>
<strong>
pylib/configure.py
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/pylib/configure.py
</span><span style="color: #000000;background-color: #ddffdd">+++ b/pylib/configure.py
</span><span style="color: #aaaaaa">@@ -11,6 +11,8 @@ def cmd_configure(ctx):
</span> ctx.load('compiler_c')
ctx.load('bison')
<span style="color: #000000;background-color: #ddffdd">+ if ctx.options.enable_cross:
+ ctx.env.ENABLE_CROSS = True
</span>
from compiler import check_compiler
check_compiler(ctx)
<span style="color: #aaaaaa">@@ -188,8 +190,9 @@ def cmd_configure(ctx):
</span> #HGM (None, "signed char"),
]
<span style="color: #000000;background-color: #ffdddd">- for header, sizeof in sorted(sizeofs):
- ctx.check_sizeof(header, sizeof)
</span><span style="color: #000000;background-color: #ddffdd">+ if not ctx.env.ENABLE_CROSS:
+ for header, sizeof in sorted(sizeofs):
+ ctx.check_sizeof(header, sizeof)
</span>
# The protocol major number
ctx.define("NTP_API", 4)
<span style="color: #aaaaaa">@@ -213,7 +216,8 @@ def cmd_configure(ctx):
</span> ctx.check_cc(lib="edit", mandatory=False)
ctx.check_cc(lib="m")
ctx.check_cc(lib="ossaudio", mandatory=False) # NetBSD audio
<span style="color: #000000;background-color: #ffdddd">- ctx.check_cc(lib="pthread")
</span><span style="color: #000000;background-color: #ddffdd">+ if not ctx.env.ENABLE_CROSS:
+ ctx.check_cc(lib="pthread")
</span> ctx.check_cc(lib="rt", mandatory=False)
ctx.check_cc(lib="readline", mandatory=False)
ctx.check_cc(lib="thr", mandatory=False)
</code></pre>
<br>
</li>
<li id='diff-2'>
<a href='https://gitlab.com/NTPsec/ntpsec/commit/c3fc50c9b93ad77c06c68e5c3868cc196909f159#diff-2'>
<strong>
wscript
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/wscript
</span><span style="color: #000000;background-color: #ddffdd">+++ b/wscript
</span><span style="color: #aaaaaa">@@ -47,6 +47,7 @@ def options(ctx):
</span> grp.add_option('--disable-dns-lookup', action='store_true', default=False, help="Disable DNS lookups.")
grp.add_option('--disable-dns-retry', action='store_true', default=False, help="Disable retrying DNS lookups.")
grp.add_option('--disable-mdns-registration', action='store_true', default=False, help="Disable MDNS registration.")
<span style="color: #000000;background-color: #ddffdd">+ grp.add_option('--enable-cross', action='store_true', default=False, help="Cross compile.")
</span>
grp = ctx.add_option_group("NTP configure features")
</code></pre>
<br>
</li>
</div>
<div class='footer' style='margin-top: 10px;'>
<p>
—
<br>
<a href="https://gitlab.com/NTPsec/ntpsec/commit/c3fc50c9b93ad77c06c68e5c3868cc196909f159">View it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Commit","url":"https://gitlab.com/NTPsec/ntpsec/commit/c3fc50c9b93ad77c06c68e5c3868cc196909f159"}}</script>
</p>
</div>
</body>
</html>