brianmario / charlock_holmes

Character encoding detection, brought to you by ICU
MIT License
1.03k stars 140 forks source link

charlock_holmes no longer builds on CentOS v6 (g++ 4.4.7) #152

Closed stanhu closed 4 years ago

stanhu commented 4 years ago

https://github.com/brianmario/charlock_holmes/pull/148 mandates the -std=c++11 flag but older g++ versions (pre v4.7) don't support this.

CentOS 6 ships with g++ v4.4.7, which doesn't support the -std=c++11 flag but does support -std=c++0x.

Right now it doesn't appear there's a way to disable this flag. Perhaps if CXXFLAGS has -std= defined, we can skip that?