Win32Toolchain: define CFLAGS/CXXFLAGS in top level build_mingw32 script

All flags which are used now for building Win32 version of LMMS are now
defined in the top level build_mingw32 script instead of the
Win32Toolchain cmake files.
This commit is contained in:
Tobias Doerffel
2010-07-25 19:22:28 +02:00
parent 6da391ea69
commit 1513b0c437
2 changed files with 2 additions and 4 deletions

View File

@@ -1,4 +1,6 @@
MINGW=/opt/mingw32
export PATH=$PATH:$MINGW/bin
export CFLAGS="-march=pentium3 -mtune=generic -mpreferred-stack-boundary=5 -fno-tree-vectorize"
export CXXFLAGS="$CFLAGS"
cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/modules/Win32Toolchain.cmake -DCMAKE_MODULE_PATH=`pwd`/../cmake/modules/

View File

@@ -2,9 +2,5 @@ SET(MINGW_PREFIX /opt/mingw32)
SET(CMAKE_SYSTEM_PROCESSOR i686)
SET(CMAKE_C_FLAGS "-march=i686 -mtune=generic")
SET(CMAKE_CXX_FLAGS ${CMAKE_C_FLAGS})
INCLUDE(MinGWCrossCompile)