diff --git a/extensions/geoip/AMBuilder b/extensions/geoip/AMBuilder index 36b6df91..e54ed7c6 100644 --- a/extensions/geoip/AMBuilder +++ b/extensions/geoip/AMBuilder @@ -2,6 +2,10 @@ import os binary = SM.ExtLibrary(builder, 'geoip.ext') +if binary.compiler.vendor == 'gcc' or binary.compiler.vendor == 'clang': + binary.compiler.cxxflags += ['-fno-rtti'] +elif binary.compiler.vendor == 'msvc': + binary.compiler.cxxflags += ['/GR-'] if builder.target_platform == 'windows': binary.compiler.postlink += ['wsock32.lib'] diff --git a/extensions/mysql/AMBuilder b/extensions/mysql/AMBuilder index ab1e00a3..b4bdfb27 100644 --- a/extensions/mysql/AMBuilder +++ b/extensions/mysql/AMBuilder @@ -7,6 +7,10 @@ if SM.mysql_root: os.path.join(SM.mysql_root, 'include'), os.path.join(SM.mms_root, 'core', 'sourcehook') ] + if binary.compiler.vendor == 'gcc' or binary.compiler.vendor == 'clang': + binary.compiler.cxxflags += ['-fno-rtti'] + elif binary.compiler.vendor == 'msvc': + binary.compiler.cxxflags += ['/GR-'] if builder.target_platform == 'linux' or builder.target_platform == 'mac': binary.compiler.postlink += [ diff --git a/extensions/regex/AMBuilder b/extensions/regex/AMBuilder index 696f450e..a95959e7 100644 --- a/extensions/regex/AMBuilder +++ b/extensions/regex/AMBuilder @@ -5,6 +5,10 @@ binary = SM.ExtLibrary(builder, 'regex.ext') binary.compiler.cxxincludes += [ os.path.join(SM.mms_root, 'core', 'sourcehook'), ] +if binary.compiler.vendor == 'gcc' or binary.compiler.vendor == 'clang': + binary.compiler.cxxflags += ['-fno-rtti'] +elif binary.compiler.vendor == 'msvc': + binary.compiler.cxxflags += ['/GR-'] if builder.target_platform == 'linux': path = os.path.join(builder.sourcePath, 'extensions', 'regex', 'lib_linux', 'libpcre.a')