13
0

Attempt to strip stupid FLAC include.

git-svn-id: svn://localhost/ardour2/branches/3.0@4683 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2009-02-26 18:37:41 +00:00
parent db68fcfca6
commit 9e3b571189

14
wscript
View File

@ -127,6 +127,20 @@ def configure(conf):
for i in children:
sub_config_and_use(conf, i)
print conf.env['CCFLAGS']
print conf.env['CXXFLAGS']
# Fix utterly braindead FLAC include path
for prefix in [ '/usr/include', '/usr/local/include' ]:
for flags in [ conf.env['CCFLAGS'], conf.env['CXXFLAGS'] ]:
for i in flags:
if i == '-I' + prefix + '/FLAC':
print '*** STRIPPED IDIOTIC FLAC INCLUDE PATH'
flags.remove(i)
print conf.env['CCFLAGS']
print conf.env['CXXFLAGS']
autowaf.print_summary(conf)
opts = Options.options
autowaf.display_header('Ardour Configuration')