avidyalalala / sunpinyin

Automatically exported from code.google.com/p/sunpinyin
0 stars 0 forks source link

scons 脚步需要多加几个选项以方便打包 #185

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
--cflags 默认的-O2 -pipe -DHAVE_CONFIG_H 

--bindir

--libdir

--libdatadir

--datadir

--libexecdir

这些选项最好不要hardcode到脚本里面,默认的cfalgs -O2 -pipe 
-DHAVE_CONFIG_H建议改成-O2 
-g,因为这两个参数可以安全的override,-DHAVE_CONFIG_H可以直接�
��到CXXFLAGS里面

Original issue reported on code.google.com by supercyp...@gmail.com on 17 Aug 2010 at 8:10

GoogleCodeExporter commented 9 years ago

Original comment by find...@gmail.com on 23 Aug 2010 at 10:00

GoogleCodeExporter commented 9 years ago
bindir,libdir,libdatadir,datadir,execdir这些似乎不太方便改。应该按�
��FHS标准。
打包的时候一定要用这几个特殊的选项么?

cflags现在可以通过设置环境变量了。CFLAGS="xxx" CXXFLAGS="XXX" 
scons即可。

Original comment by mikeandm...@gmail.com on 23 Aug 2010 at 10:17

GoogleCodeExporter commented 9 years ago
原本autoconf的脚本里面就可以设置这些选项。。。。

Original comment by supercyp...@gmail.com on 23 Aug 2010 at 12:03

GoogleCodeExporter commented 9 years ago
是啊,可是这些选项如果是没有用处的话就没有必要添加啊��
�必定属于不太标准的做法。

Original comment by mikeandm...@gmail.com on 23 Aug 2010 at 12:10

GoogleCodeExporter commented 9 years ago
fixed:

libsunpinyin:
--libdir
--libdatadir

ibus-sunpinyin:
--libdir
--libexecdir
--datadir

xsunpinyin:
N/A

Original comment by mikeandm...@gmail.com on 9 Feb 2011 at 3:44