diff --git a/configure b/configure
index eb20880..7f230ce 100755
a
|
b
|
build_config() |
81 | 81 | if [ "$optimisations" = "true" ] |
82 | 82 | then |
83 | 83 | echo "OPTIMISATIONS=-O2 -pipe" |
84 | | # Since gcc 4.6, this optimization enabled with -O1 causes filter_line_sse2 to crash. |
85 | | echo "OPTIMISATIONS+=-fno-tree-dominator-opts" |
86 | | # Since gcc 4.6, this optimization enabled with -O2 causes filter_line_sse2 to crash. |
87 | | echo "OPTIMISATIONS+=-fno-tree-pre" |
| 84 | "$CC" --version | grep gcc >/dev/null |
| 85 | if [ "$?" = "0" ]; then |
| 86 | # Since gcc 4.6, this optimization enabled with -O1 causes filter_line_sse2 to crash. |
| 87 | echo "OPTIMISATIONS+=-fno-tree-dominator-opts" |
| 88 | # Since gcc 4.6, this optimization enabled with -O2 causes filter_line_sse2 to crash. |
| 89 | echo "OPTIMISATIONS+=-fno-tree-pre" |
| 90 | fi |
88 | 91 | fi |
89 | 92 | |
90 | 93 | echo "CFLAGS+=-Wall -DPIC \$(TARGETARCH) \$(TARGETCPU) \$(OPTIMISATIONS) \$(MMX_FLAGS) \$(SSE_FLAGS) \$(SSE2_FLAGS) \$(DEBUG_FLAGS) \$(LARGE_FILE)" |