Index: python/configure.py.in =================================================================== --- python/configure.py.in (revision 11387) +++ python/configure.py.in (working copy) @@ -122,7 +122,7 @@ # common settings for both core and gui libs for mk in [ makefile_core, makefile_gui ]: - mk.extra_lflags.extend( "@CMAKE_MODULE_LINKER_FLAGS@".strip(' ').split(' ') ) + mk.extra_lflags = ["@CMAKE_MODULE_LINKER_FLAGS@"] mk.extra_libs = ["qgis_core"] mk.extra_lib_dirs = [build_path+"/src/core"+intdir] mk.extra_include_dirs = [src_path+"/src/core", src_path+"/src/core/composer", @@ -133,7 +133,8 @@ build_path, # qgsconfig.h, qgssvnversion.h gdal_inc_dir, geos_inc_dir] - mk.extra_cxxflags = ["-DCORE_EXPORT="+export] + mk.extra_cxxflags = ["-DCORE_EXPORT="+export, "@CMAKE_CXX_FLAGS@"] + mk.extra_libs.append("python"+sys.version[0:3]) # more settings for gui lib makefile_gui.extra_libs.append("qgis_gui")