[Git][NTPsec/ntpsec][master] build libaes/: Only apply C flags where apropriate. Fixes #558
Matt Selsky
gitlab at mg.gitlab.com
Mon Dec 14 00:14:41 UTC 2020
Matt Selsky pushed to branch master at NTPsec / ntpsec
Commits:
468fc5a7 by James Browning at 2020-12-14T00:05:39+00:00
build libaes/: Only apply C flags where apropriate. Fixes #558
- - - - -
1 changed file:
- libaes_siv/wscript
Changes:
=====================================
libaes_siv/wscript
=====================================
@@ -1,13 +1,17 @@
def build(ctx):
- # libaes_siv has warnings when built with -Wshadow, so make sure to use
- # -Wno-shadow
- # gcc 10 gives inline warnings, so add no-inline too
- ctx.env.CFLAGS_cstlib = ['-Wno-shadow', '-Wno-inline']
-
ctx(
- target="aes_siv",
- features="c cstlib",
+ target='aes_siv',
+ features='c cstlib',
includes=[ctx.bldnode.parent.abspath()],
- source="aes_siv.c",
- use="CRYPTO",
+ source='aes_siv.c',
+ use='CRYPTO',
+ cflags=['-Wno-shadow',
+ # '-Wall', '-Wextra', '-Wstrict-prototypes', # default
+ '-Wconversion',
+ '-O3',
+ '-fomit-frame-pointer',
+ '-funroll-loops',
+ '-ftree-vectorize',
+ '-Wno-inline', # gcc 10 gives inline warnings?
+ ],
)
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/468fc5a7c99a804ed06318f7191c159598e73bf3
--
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/468fc5a7c99a804ed06318f7191c159598e73bf3
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20201214/9d5e605f/attachment.htm>
More information about the vc
mailing list