2014-05-01 wcdj
最近将gcc-4.8.1升级为gcc-4.9.0,安装方法类似之前文章《在OS X Lion 10.8.4 x86_64平台搭建C++11开发环境》总结的方法。
gcc主页:http://gcc.gnu.org/
GCC 4.9.0 (changes) (docs)
Status: 2014-04-22 (regression fixes and docs only).
Serious regressions. All regressions.
GCC 4.9.0新版的变化主要包括 :
- Solaris 9架构被宣布废弃,如果无人活跃开发,下一个版本将彻底移除;
- ARM架构支持AddressSanitizer,改进链接时优化,过程间优化和反馈向优化;
- C和C++编译器支持OpenMP 4.0规格;
- 改进C++11和C++1y支持;
- 完整支持Go 1.2.1;
- 支持Power ISA 2.07及硬件事务性内存;
- 支持英特尔AVX-512、Silvermont和 Broadwell架构、AMD Excavator架构等等。
或者:
http://www.infoq.com/cn/news/2014/04/gcc4.9_release
0 gcc-4.9.0安装后的注意事项
----------------------------------------------------------------------
Libraries have been installed in:
/Users/gerryyang/LAMP/gcc/install/gcc-4.9.0/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to th