|
@@ -414,7 +414,6 @@ function toolchain(_buildDir, _libDir)
|
|
|
defines { "WIN32" }
|
|
defines { "WIN32" }
|
|
|
includedirs { path.join(bxDir, "include/compat/mingw") }
|
|
includedirs { path.join(bxDir, "include/compat/mingw") }
|
|
|
buildoptions {
|
|
buildoptions {
|
|
|
- "-std=c++0x",
|
|
|
|
|
"-Wunused-value",
|
|
"-Wunused-value",
|
|
|
"-fdata-sections",
|
|
"-fdata-sections",
|
|
|
"-ffunction-sections",
|
|
"-ffunction-sections",
|
|
@@ -422,6 +421,9 @@ function toolchain(_buildDir, _libDir)
|
|
|
"-Wunused-value",
|
|
"-Wunused-value",
|
|
|
"-Wundef",
|
|
"-Wundef",
|
|
|
}
|
|
}
|
|
|
|
|
+ buildoptions_cpp {
|
|
|
|
|
+ "-std=c++0x",
|
|
|
|
|
+ }
|
|
|
linkoptions {
|
|
linkoptions {
|
|
|
"-Wl,--gc-sections",
|
|
"-Wl,--gc-sections",
|
|
|
"-static-libgcc",
|
|
"-static-libgcc",
|
|
@@ -486,11 +488,13 @@ function toolchain(_buildDir, _libDir)
|
|
|
|
|
|
|
|
configuration { "linux-*" }
|
|
configuration { "linux-*" }
|
|
|
buildoptions {
|
|
buildoptions {
|
|
|
- "-std=c++0x",
|
|
|
|
|
"-msse2",
|
|
"-msse2",
|
|
|
"-Wunused-value",
|
|
"-Wunused-value",
|
|
|
"-Wundef",
|
|
"-Wundef",
|
|
|
}
|
|
}
|
|
|
|
|
+ buildoptions_cpp {
|
|
|
|
|
+ "-std=c++0x",
|
|
|
|
|
+ }
|
|
|
links {
|
|
links {
|
|
|
"rt",
|
|
"rt",
|
|
|
"dl",
|
|
"dl",
|
|
@@ -845,10 +849,12 @@ function toolchain(_buildDir, _libDir)
|
|
|
"__STDC_VERSION__=199901L",
|
|
"__STDC_VERSION__=199901L",
|
|
|
}
|
|
}
|
|
|
buildoptions {
|
|
buildoptions {
|
|
|
- "-std=c++0x",
|
|
|
|
|
"-Wunused-value",
|
|
"-Wunused-value",
|
|
|
"-Wundef",
|
|
"-Wundef",
|
|
|
}
|
|
}
|
|
|
|
|
+ buildoptions_cpp {
|
|
|
|
|
+ "-std=c++0x",
|
|
|
|
|
+ }
|
|
|
includedirs {
|
|
includedirs {
|
|
|
"/opt/vc/include",
|
|
"/opt/vc/include",
|
|
|
"/opt/vc/include/interface/vcos/pthreads",
|
|
"/opt/vc/include/interface/vcos/pthreads",
|