[CMake] CC, CXX, and FC environment variable regression in 2.8.1-rc4

2010-03-14 Thread Alan W. Irwin
I often build with export CC='gcc -g -fvisibility=hidden export CXX='g++ -g -fvisibility=hidden' and export FC='gfortran -g -fvisibility=hidden' but recently this has quit working because CMake fails to add the necessary -fPIC flag to shared library builds. Sorry I don't know the last CMake

Re: [CMake] CC, CXX, and FC environment variable regression in 2.8.1-rc4

2010-03-14 Thread Bill Hoffman
Alan W. Irwin wrote: I often build with export CC='gcc -g -fvisibility=hidden export CXX='g++ -g -fvisibility=hidden' and export FC='gfortran -g -fvisibility=hidden' but recently this has quit working because CMake fails to add the necessary -fPIC flag to shared library builds. Sorry I

Re: [CMake] CC, CXX, and FC environment variable regression in 2.8.1-rc4

2010-03-14 Thread Alan W. Irwin
On 2010-03-14 15:28-0400 Bill Hoffman wrote: Perhaps adding the flags causes the compiler to be mis-identified somehow. Can you run with the gcc -g -fvisibility=hidden, and without on a very simple C only project. Then send me the binary trees from both. I am suspecting there will be some