OSDN Git Service

gcc4.6.0(?)以降で最適化スイッチ(-O1以上)を用いた場合に不正終了することがあったのを修正。
authorsirakaba <sirakaba@9df91469-1e22-0410-86e7-ea8537beb833>
Fri, 14 Oct 2011 13:06:36 +0000 (13:06 +0000)
committersirakaba <sirakaba@9df91469-1e22-0410-86e7-ea8537beb833>
Fri, 14 Oct 2011 13:06:36 +0000 (13:06 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/tpi/tpi@578 9df91469-1e22-0410-86e7-ea8537beb833

src/common/Makefile.default
src/plugin/Makefile.default

index 968dde2..0fe6e8b 100644 (file)
@@ -4,12 +4,7 @@
 # Define compilers.
 CC = g++
 CPPFLAGS = -c -O3 -Wall -Wextra -fno-exceptions -fno-rtti `wx-config --cxxflags`
-LDFLAGS  = 
-ifdef DEBUG
-  CPPFLAGS += -g
-else
-  LDFLAGS += -s
-endif
+LDFLAGS  = -s
 
 .PHONY: all clean
 .SUFFIXES: .cpp .o
index 5ff784f..86f452f 100644 (file)
@@ -3,13 +3,8 @@
 \r
 # Define compilers.\r
 CC = g++\r
-CPPFLAGS = -c -O3 -Wall -Wextra -fno-exceptions -fno-rtti -fPIC `wx-config --cxxflags` $(CPPFLAGS_ADD)\r
-LDFLAGS  = -shared -Wl,-Bsymbolic\r
-ifdef DEBUG\r
-  CPPFLAGS += -g\r
-else\r
-  LDFLAGS += -s\r
-endif\r
+CPPFLAGS = -c -fno-exceptions -fno-rtti -fPIC -Wall -Wextra `wx-config --cxxflags` $(CPPFLAGS_ADD)\r
+LDFLAGS  = -shared -Wl,-Bsymbolic -s\r
 \r
 # Define i/o files.\r
 DIR_OBJ  = ../../tmp/$(PLUGIN_NAME)\r