fastos / fastsocket

Fastsocket is a highly scalable socket and its underlying networking implementation of Linux kernel. With the straight linear scalability, Fastsocket can provide extremely good performance in multicore machines. In addition, it is very easy to use and maintain. As a result, it has been deployed in the production environment of SINA.
GNU General Public License v2.0
3.76k stars 727 forks source link

Fix the compile issue on CentOS 7 with gcc 4.8.2 #11

Closed gfreewind closed 10 years ago

gfreewind commented 10 years ago
Fix the compile error on CentOS7 with gcc 4.8.2
1. Export the CPP_VERS to fix the compatibility issue of gcc;
2. Use -m64 and -m32 instead of the -m elf_x86_64 and -m elf_i386 separately
   when the gcc version is higher than 4.6.
   Because gcc does not support the linker-style since 4.6
3. Comment out the duplicated sense_buffer in struct pmcraid_cmd