diff --git a/README.md b/README.md new file mode 100644 index 0000000..c2cb284 --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +AMBuildScript needs '-std=c++14', instead of '-std=c++11', + +def configure_linux(self, cxx): + cxx.defines += ['_LINUX', 'POSIX'] + cxx.linkflags += ['-Wl,--exclude-libs,ALL', '-lm'] + if cxx.vendor == 'gcc': + cxx.linkflags += ['-static-libgcc'] + elif cxx.vendor == 'clang': + cxx.linkflags += ['--static-libgcc'] + +remember to use that instead of cxx.linkflags += ['-static-libgcc'] and cxx.linkflags += ['-lgcc_eh']