From ab9fade14dd7e47731f7a706e4d8a9544ffc411e Mon Sep 17 00:00:00 2001 From: "roberto@sirius" Date: Fri, 10 Sep 2010 20:46:19 +0200 Subject: [PATCH] fix no-strict-aliasing --- uwsgi.c | 2 +- uwsgiconfig.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/uwsgi.c b/uwsgi.c index 87347df2..b1cb6c3b 100644 --- a/uwsgi.c +++ b/uwsgi.c @@ -3321,7 +3321,7 @@ void manage_opt(int i, char *optarg) { \t--erlang \t\tenable the Erlang server with node name \n\ \t--erlang-cookie \tset the erlang cookie to \n\ \t--nagios\t\t\tdo a nagios check\n\ -\t--binary-path \ttset the path for the next reload of uWSGI (needed for chroot environments)\n\ +\t--binary-path \tset the path for the next reload of uWSGI (needed for chroot environments)\n\ \t--proxy \t\trun the uwsgi proxy on socket \n\ \t--proxy-node \t\tadd the node to the proxy\n\ \t--proxy-max-connections \tset the max number of concurrent connections mnaged by the proxy\n\ diff --git a/uwsgiconfig.py b/uwsgiconfig.py index 4445f520..07838dba 100644 --- a/uwsgiconfig.py +++ b/uwsgiconfig.py @@ -92,7 +92,7 @@ gcc_minor = int(gcc_version.split('.')[1]) gcc_list = ['utils', 'pyutils', 'protocol', 'socket', 'logging', 'wsgi_handlers', 'wsgi_headers', 'uwsgi_handlers', 'plugins', 'uwsgi'] -cflags = ['-O2', '-fno-strict-aliasing', '-Wall', '-Werror', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64'] + os.environ.get("CFLAGS", "").split() +cflags = ['-O2', '-Wall', '-Werror', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64'] + os.environ.get("CFLAGS", "").split() # add -fno-strict-aliasing only on python2 and gcc < 4.3 if (sys.version_info[0] == 2) or (gcc_major < 4) or (gcc_major == 4 and gcc_minor < 3):