OSDN Git Service

clang 3.5で-O4が-fltoに変更された点を修正。
authorsirakaba <sirakaba@9df91469-1e22-0410-86e7-ea8537beb833>
Wed, 8 Jan 2014 12:45:28 +0000 (12:45 +0000)
committersirakaba <sirakaba@9df91469-1e22-0410-86e7-ea8537beb833>
Wed, 8 Jan 2014 12:45:28 +0000 (12:45 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/tpi/tpi@646 9df91469-1e22-0410-86e7-ea8537beb833

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

index 924224c..c0d6a9d 100644 (file)
@@ -4,7 +4,7 @@
 # Define compilers.
 CC = clang++
 CPPFLAGS = -c -O3 -Wall -Wextra -fno-exceptions -fno-rtti -fPIC `wx-config --cxxflags` -std=c++11
-LDFLAGS  = -s -O4
+LDFLAGS  = -s -flto
 
 # Check the architecture.
 ARCH = $(shell uname -m)
index 039c424..f10c211 100644 (file)
@@ -4,7 +4,7 @@
 # Define compilers.\r
 CC = clang++\r
 CPPFLAGS = -c -O3 -Wall -Wextra -fno-exceptions -fno-rtti -fPIC `wx-config --cxxflags` $(CPPFLAGS_ADD)\r
-LDFLAGS  = -s -O4 -shared -Wl,-Bsymbolic\r
+LDFLAGS  = -s -flto -shared -Wl,-Bsymbolic\r
 \r
 # Define i/o files.\r
 ARCH = $(shell uname -m)\r