From 2994c1c7c850e3aea2e5b7796b89ff6b8c3e2afb Mon Sep 17 00:00:00 2001 From: Alik Aslanyan Date: Sat, 26 Jan 2019 19:38:40 +0400 Subject: [PATCH] Update AMBuildScript --- AMBuildScript | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AMBuildScript b/AMBuildScript index 8e99aa20..2b275c5b 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -251,8 +251,8 @@ class AMXXConfig(object): ] if builder.options.opt == '1': - cxx.cflags += ['-O2', '-flto=thin'] - cxx.linkflags += ['-O2', '-flto=thin', '-fuse-ld=lld', '-Wl,-z,notext'] + cxx.cflags += ['-O2', '-flto=thin', '-fPIC'] + cxx.linkflags += ['-O2', '-flto=thin', '-fuse-ld=lld'] def configure_msvc(self, cxx): if builder.options.debug == '1':