Skip to content

Instantly share code, notes, and snippets.

@edvakf
Created March 5, 2011 00:53
Show Gist options
  • Select an option

  • Save edvakf/855989 to your computer and use it in GitHub Desktop.

Select an option

Save edvakf/855989 to your computer and use it in GitHub Desktop.
diff --git a/SConstruct b/SConstruct
index 26259a2..3830265 100644
--- a/SConstruct
+++ b/SConstruct
@@ -72,6 +72,8 @@ def Build():
env = Environment(options=var, tools = ['default', TOOL_SUBST])
env.VariantDir(join(root_dir, 'obj'), join(root_dir, 'src'), 0)
+ env.PrependENVPath('PATH', os.environ['PATH']) # especially MacPorts's /opt/local/bin
+
if os.path.exists(join(root_dir, '.config')):
env.SConscript(
join(root_dir, '.config'),
@@ -98,7 +100,8 @@ def Build():
conf.env.Append(
CCFLAGS=[
"-pedantic", "-Wpointer-arith",
- "-Wwrite-strings", "-Wno-long-long" ])
+ "-Wwrite-strings", "-Wno-long-long",
+ "-Wno-missing-field-initializers" ])
option_dict['%USE_ICU%'] = '1'
conf.CheckLibWithHeader('m', 'cmath', 'cxx')
env = conf.Finish()
@edvakf
Copy link
Copy Markdown
Author

edvakf commented Mar 5, 2011

-Wno-missing-field-initializers needed for boost/date_time/posix_time/conversion.hpp
http://lists.boost.org/Archives/boost/2009/09/155831.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment