Skip to content

Commit

Permalink
Reduce cflag pollution from curl
Browse files Browse the repository at this point in the history
  • Loading branch information
pquerna committed Jan 23, 2010
1 parent 8ea1b5e commit a8ae0ee
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions SConstruct
Expand Up @@ -79,9 +79,12 @@ if conf.env.WhereIs('dpkg'):
conf.env.AppendUnique(CPPPATH = [pjoin(cprefix[1], "include")])

# TOOD: this is less than optimal, since curl-config polutes this quite badly :(
d = conf.env.ParseFlags(clibs[1])
t = clibs[1].replace('-g0 ', '')
t = t.replace('-Wno-system-headers ', '')
t = t.replace('-Os ', '')
d = conf.env.ParseFlags(t)
conf.env.MergeFlags(d)
conf.env.AppendUnique(CPPFLAGS = ["-Wall"])
conf.env.AppendUnique(CPPFLAGS = ["-Wall", '-O0', '-ggdb'])
# this is needed on solaris because of its dumb library path issues
conf.env.AppendUnique(RPATH = conf.env.get('LIBPATH'))
env = conf.Finish()
Expand Down

0 comments on commit a8ae0ee

Please sign in to comment.