Allow to set optimization level during configure.

This allows to set the optimization level for libbsd via a configure
switch. Useful for building with for example no optimization during
debug or with size optimization for space restricted targets.
This commit is contained in:
Christian Mauderer
2017-10-02 09:57:04 +02:00
committed by Sebastian Huber
parent a70edfc49a
commit d18c6435c4
4 changed files with 9 additions and 3 deletions

View File

@@ -156,8 +156,7 @@ class diffRecord:
# This stuff needs to move to libbsd.py.
#
def commonFlags():
return ['-O2',
'-g',
return ['-g',
'-fno-strict-aliasing',
'-ffreestanding',
'-fno-common']