View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update | 
|---|---|---|---|---|---|
| 0005752 | ardour | bugs | public | 2013-10-26 15:43 | 2013-10-26 15:52 | 
| Reporter | nolaiz | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always | 
| Status | new | Resolution | open | ||
| Summary | 0005752: --cxx11 configuration flag broken for GCC<4.7 | ||||
| Description | When using --cxx11 on configuration I get: Checking for compiler flags ['-std=c++11'] : no The configuration failed From GCC documentation [1]: To enable C++0x support, add the command-line parameter -std=c++0x to your g++ command line. Or, to enable GNU extensions in addition to C++0x extensions, add -std=gnu++0x to your g++ command line. [b]GCC 4.7 and later support -std=c++11 and -std=gnu++11 as well[/b]. [1]http://gcc.gnu.org/projects/cxx0x.html  | ||||
| Additional Information | I (unclearly :)) reported it when describing unrelated bug 0005751. | ||||
| Tags | No tags attached. | ||||
| 
		 
 2013-10-26 15:46 
  | 
	
	  c++0x.patch (613 bytes)   
 
diff --git a/wscript b/wscript
index 3d01632..7b22869 100644
--- a/wscript
+++ b/wscript
@@ -114,8 +114,8 @@ def set_compiler_flags (conf,opt):
     is_clang = conf.env['CXX'][0].endswith('clang++')
     
     if conf.options.cxx11:
-        conf.check_cxx(cxxflags=["-std=c++11"])
-        conf.env.append_unique('CXXFLAGS', ['-std=c++11'])
+        conf.check_cxx(cxxflags=["-std=c++0x"])
+        conf.env.append_unique('CXXFLAGS', ['-std=c++0x'])
         if platform == "darwin":
             conf.env.append_unique('CXXFLAGS', ['-stdlib=libc++'])
             conf.env.append_unique('LINKFLAGS', ['-lc++'])
 | 
| 
		 | 
	Using the attached patch compiled successfully on GCC 4.6.4. |