clawpack/pyclaw — Issue #102: -fPIC not included in f2py flags when FFLAGS set
Author: mandli
Created: 2011-11-30 23:16:03+00:00
State: open
Labels: Bug

I am not sure if this is something we can fix but when I run any of the examples I get errors related to not including -fPIC in the compiling flags. I ran

```bash
env --unset=FFLAGS make
```

in one of the applications and everything worked fine. I also tried adding

```makefile
ifdef FFLAGS
FFLAGS += -fPIC
else
FFLAGS = -fPIC
endif
```

to Makefile.variables which also seems to have solved the problem. It does not look like we are doing anything special with f2py arguments so it may be prudent to either include the above Makefile fix or pass f2py the user defined FFLAGS variable through the appropriate command line flags.