From 317bc207fbed7dcd64056c11766f74720a2ab405 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Wed, 3 May 2017 18:56:43 +0200 Subject: [PATCH] Do not force specific arguments when compiling for win32. Those option should be set by build system, not by kiwix-build. Moreover, this impact other libraries (as icu) and generate pretty big library binaries. --- kiwix-build.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/kiwix-build.py b/kiwix-build.py index 2d68769..7f6bdb2 100755 --- a/kiwix-build.py +++ b/kiwix-build.py @@ -614,8 +614,6 @@ class mingw32_toolchain(Toolchain): env[k] = v env['PKG_CONFIG_LIBDIR'] = pj(self.root_path, 'lib', 'pkgconfig') - env['CFLAGS'] = " -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 "+env['CFLAGS'] - env['CXXFLAGS'] = " -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 "+env['CXXFLAGS'] env['LIBS'] = " ".join(self.buildEnv.cross_config['extra_libs']) + " " +env['LIBS']