Justin reports that it breaks the compilation on Fedore 15 and as Tom says:
-static is only needed to work around the gcc on ubuntu 11.10 beta bug.
If -static introduces issues on its own then it is better to remove it.
It will not be needed in most environments.
No functional change.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
### needs access to the optimization flags.
ifeq ($(comp),gcc)
CXXFLAGS += -msse3 -flto
- LDFLAGS += $(CXXFLAGS) -static
+ LDFLAGS += $(CXXFLAGS)
endif
endif