avidyalalala / sunpinyin

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

sunpinyin-2.0.2不使用用户自定义的ldflags #227

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
编译时,目前Sconstruct并不使用user-defined ldflags。例如 -O1 
--as-needed --hash-style=gnu。
这也导致了Gentoo系统上相应的QA issue:
http://bugs.gentoo.org/show_bug.cgi?id=351017
附件中的patch修复了这个问题

另外不太明白为什么开发人员要把cflags写死:
cflags='-O2 -pipe -DHAVE_CONFIG_H '
能不能将用户自定义的cflags和默认的cflags结合起来呢?

Original issue reported on code.google.com by qiao...@gmail.com on 8 Jan 2011 at 6:19

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by find...@gmail.com on 10 Jan 2011 at 1:38

GoogleCodeExporter commented 9 years ago
我清楚的记得可以指定cflags的。至少在现在的版本。

不过ldflags倒是没有考虑到。

Original comment by mikeandm...@gmail.com on 10 Jan 2011 at 1:47

GoogleCodeExporter commented 9 years ago
那应该是我没有找到在哪里设置cflags吧,抱歉,还请问一下��
�如何指定?

Original comment by qiao...@gmail.com on 10 Jan 2011 at 2:10

GoogleCodeExporter commented 9 years ago
Oops,记错了。2.0.2果真不可以。
2.0.3就可以了。

因为当时是怕环境变量污染,所以没放进来。

Original comment by mikeandm...@gmail.com on 10 Jan 2011 at 2:54

GoogleCodeExporter commented 9 years ago
fixed in master branch

Original comment by mikeandm...@gmail.com on 13 Jan 2011 at 4:11