SConscript (8946:fb6c89334b86) SConscript (9388:b958d9fa867c)
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2005 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 86 unchanged lines hidden (view full) ---

95if m4env['GCC']:
96 if compareVersions(m4env['GCC_VERSION'], '4') >= 0:
97 m4env.Append(CCFLAGS=['-Wno-pointer-sign'])
98 if compareVersions(m4env['GCC_VERSION'], '4.6') >= 0:
99 m4env.Append(CCFLAGS=['-Wno-unused-but-set-variable',
100 '-Wno-implicit-function-declaration'])
101if m4env['CLANG']:
102 m4env.Append(CCFLAGS=['-Wno-initializer-overrides', '-Wno-pointer-sign'])
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2005 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 86 unchanged lines hidden (view full) ---

95if m4env['GCC']:
96 if compareVersions(m4env['GCC_VERSION'], '4') >= 0:
97 m4env.Append(CCFLAGS=['-Wno-pointer-sign'])
98 if compareVersions(m4env['GCC_VERSION'], '4.6') >= 0:
99 m4env.Append(CCFLAGS=['-Wno-unused-but-set-variable',
100 '-Wno-implicit-function-declaration'])
101if m4env['CLANG']:
102 m4env.Append(CCFLAGS=['-Wno-initializer-overrides', '-Wno-pointer-sign'])
103 # clang defaults to c99 (while gcc defaults to gnu89) and there is a
104 # difference in the handling of inlining functions which causes
105 # linking problems with multiple definitions of the symbols in
106 # sysmacros.h for older versions of glibc
107 m4env.Append(CCFLAGS=['-std=gnu89'])
103m4env.Append(CCFLAGS=['-Wno-implicit'])
104del m4env['CPPPATH']
105
106# If we have gm4 use it
107if m4env.Detect('gm4'):
108 m4env['M4'] = 'gm4'
109
110# Check that m4 is available

--- 23 unchanged lines hidden ---
108m4env.Append(CCFLAGS=['-Wno-implicit'])
109del m4env['CPPPATH']
110
111# If we have gm4 use it
112if m4env.Detect('gm4'):
113 m4env['M4'] = 'gm4'
114
115# Check that m4 is available

--- 23 unchanged lines hidden ---