199876bf1e5731a59213c185682e9cf13d0eb8bf
[sven/exfat-utils.git] / debian / patches / honor-cppflags
1 Applied upstream in r284.
2 http://code.google.com/p/exfat/source/detail?r=284
3 --- a/SConstruct
4 +++ b/SConstruct
5 @@ -41,6 +41,8 @@ if not conf.env['CCFLAGS']:
6                 conf.env.Replace(CCFLAGS = '-Wall -O2 -ggdb')
7         elif conf.env['CC'] == 'clang':
8                 conf.env.Replace(CCFLAGS = '-Wall -O2 -g')
9 +if 'CPPFLAGS' in os.environ:
10 +   conf.env.Replace(CPPFLAGS = os.environ['CPPFLAGS'])
11  conf.env.Append(CPPDEFINES = {'FUSE_USE_VERSION': 26})
12  conf.env.Append(CPPDEFINES = {'_FILE_OFFSET_BITS' : 64})
13  conf.env.Append(CPPPATH = ['libexfat'])