diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-11-08 00:45:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-11-08 01:01:11 +0300 |
commit | 0260dcea2e9fbd06ba2ee166862d089dc72516f4 (patch) | |
tree | d864fce30ea91f1eb416cdb48a24b06228f36b7b /build/bmakesnapshot | |
parent | 4cea2a5cd85b8d3ad905eb3b337b28284c62d4fe (diff) | |
download | manaplus-0260dcea2e9fbd06ba2ee166862d089dc72516f4.tar.gz manaplus-0260dcea2e9fbd06ba2ee166862d089dc72516f4.tar.bz2 manaplus-0260dcea2e9fbd06ba2ee166862d089dc72516f4.tar.xz manaplus-0260dcea2e9fbd06ba2ee166862d089dc72516f4.zip |
Add make script for gcc 4.7 snapshot.
Diffstat (limited to 'build/bmakesnapshot')
-rwxr-xr-x | build/bmakesnapshot | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/build/bmakesnapshot b/build/bmakesnapshot new file mode 100755 index 000000000..4736fb8a5 --- /dev/null +++ b/build/bmakesnapshot @@ -0,0 +1,44 @@ +#!/bin/sh + +cd .. + +#need fix: -Wzero-as-null-pointer-constant + +dir=`pwd` + +export PATH=/usr/lib/gcc-snapshot/bin:$PATH +export CC=gcc +export CXX=g++ + +export LANG=C + +export CXXFLAGS="-Wvariadic-macros -Wvla -Wredundant-decls \ +-Wpacked-bitfield-compat -Wtrampolines \ +-Wsuggest-attribute=noreturn -Wunused -Wstrict-aliasing=2 \ +-fstrict-aliasing -Wunreachable-code -Wabi -Wdisabled-optimization \ +-Wvolatile-register-var -Winvalid-pch -Wredundant-decls \ +-Wnormalized=nfkc -Wmissing-format-attribute -Wmissing-noreturn \ +-Wswitch-default -Wsign-promo -Waddress -Wmissing-declarations \ +-Wctor-dtor-privacy -Wstrict-null-sentinel -Wlogical-op \ +-Wcast-align -Wpointer-arith -Wundef \ +-Wmissing-include-dirs -Winit-self -pedantic -Wall -ggdb3 -O2 -pipe \ +-Wpacked -Wextra -Wstrict-overflow=1 -Wunknown-pragmas -Wwrite-strings \ +-Wstack-protector -Wshadow -Wunused -Wunused-macros -Wsynth \ +-Wbuiltin-macro-redefined -Wctor-dtor-privacy -Wdeprecated -Wextra \ +-Wendif-labels -Wformat=1 -Wimport -Wnon-virtual-dtor -Wpsabi \ +-Wsign-promo -Wwrite-strings -D_FORTIFY_SOURCE=2 -Wc++11-compat -std=c++0x \ +-Wdelete-non-virtual-dtor -Wmaybe-uninitialized -Wunused-local-typedefs \ +-Wvector-operation-performance" + +autoreconf -i +./configure --prefix=$dir/run \ +--datadir=$dir/run/share/games \ +--bindir=$dir/run/bin \ +--mandir=$dir/run/share/man + +cd po +#make -j5 update-po 2>../build/make1.log +make -j5 update-gmo 2>../build/make1.log +cd .. +make -j5 2>build/make2.log + |