diff --git a/python/setup.py b/python/setup.py index 3b87ff8..e942e44 100644 --- a/python/setup.py +++ b/python/setup.py @@ -1,8 +1,11 @@ - +import os from setuptools import setup, Extension extra_compile_args = [ "-fno-strict-aliasing", "-Werror" ] +if "-D_FORTIFY_SOURCE=" in os.environ.get("CFLAGS", ""): + os.environ["CFLAGS"] = "-Wp,-U_FORTIFY_SOURCE " + os.environ["CFLAGS"] + PATH_INCLUDES = "../include" PATH_LIBS = "../client"