ffi/ffi — Issue #189: rake test fails with GCC 4.7
Author: voxik
Created: 2012-02-02 15:11:38+00:00
State: open

Using GCC 4.7, I got following error running the test suite:

```
cc -m64 -o build/libtest.so -shared -mimpure-text -Wl,-O1 -Wl,-soname,libtest.so build/libtest/BoolTest.o build/libtest/ClosureTest.o build/libtest/Benchmark.o build/libtest/ReferenceTest.o build/libtest/GlobalVariable.o build/libtest/PointerTest.o build/libtest/FunctionTest.o build/libtest/EnumTest.o build/libtest/VariadicTest.o build/libtest/LastErrorTest.o build/libtest/BufferTest.o build/libtest/StringTest.o build/libtest/NumberTest.o build/libtest/UnionTest.o build/libtest/StructTest.o -lm
cc: error: unrecognized command line option '-mimpure-text'
```

It runs fine if I remove the '-mimpure-text' parameter:

```
sed -i -e 's| -mimpure-text||' libtest/GNUmakefile
```