SConscript (9420:965d857ac791) | SConscript (11294:a368064a2ab5) |
---|---|
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 --- 79 unchanged lines hidden (view full) --- 88ElfFile('libelf_xlate.c') 89 90ElfFile('libelf_convert.c') 91ElfFile('libelf_fsize.c') 92ElfFile('libelf_msize.c') 93 94m4env = main.Clone() 95if m4env['GCC']: | 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 --- 79 unchanged lines hidden (view full) --- 88ElfFile('libelf_xlate.c') 89 90ElfFile('libelf_convert.c') 91ElfFile('libelf_fsize.c') 92ElfFile('libelf_msize.c') 93 94m4env = main.Clone() 95if m4env['GCC']: |
96 m4env.Append(CCFLAGS=['-Wno-pointer-sign']) 97 if compareVersions(m4env['GCC_VERSION'], '4.6') >= 0: 98 m4env.Append(CCFLAGS=['-Wno-unused-but-set-variable', 99 '-Wno-implicit-function-declaration']) | 96 m4env.Append(CCFLAGS=['-Wno-pointer-sign', 97 '-Wno-unused-but-set-variable', 98 '-Wno-implicit-function-declaration', 99 '-Wno-override-init']) |
100if m4env['CLANG']: 101 m4env.Append(CCFLAGS=['-Wno-initializer-overrides', '-Wno-pointer-sign']) 102 # clang defaults to c99 (while gcc defaults to gnu89) and there is a 103 # difference in the handling of inlining functions which causes 104 # linking problems with multiple definitions of the symbols in 105 # sysmacros.h for older versions of glibc 106 m4env.Append(CCFLAGS=['-std=gnu89']) 107m4env.Append(CCFLAGS=['-Wno-implicit']) --- 30 unchanged lines hidden --- | 100if m4env['CLANG']: 101 m4env.Append(CCFLAGS=['-Wno-initializer-overrides', '-Wno-pointer-sign']) 102 # clang defaults to c99 (while gcc defaults to gnu89) and there is a 103 # difference in the handling of inlining functions which causes 104 # linking problems with multiple definitions of the symbols in 105 # sysmacros.h for older versions of glibc 106 m4env.Append(CCFLAGS=['-std=gnu89']) 107m4env.Append(CCFLAGS=['-Wno-implicit']) --- 30 unchanged lines hidden --- |