File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -885,6 +885,25 @@ then
885
885
CFG_DISABLE_JEMALLOC=1
886
886
fi
887
887
888
+ # default gcc version under OpenBSD maybe too old, try using egcc, which is a
889
+ # gcc version from ports
890
+ if [ $CFG_OSTYPE = unknown-openbsd ]
891
+ then
892
+ if [ $( " $CFG_GCC " --version 2>&1 | grep -c ' 4\.[0-6]' ) -ne 0 ]; then
893
+ step_msg " older GCC found, try with egcc instead"
894
+
895
+ # probe again but using egcc
896
+ probe CFG_GCC egcc
897
+
898
+ # and use egcc/eg++ for CC/CXX too if it was found
899
+ # (but user setting has priority)
900
+ if [ -n " $CFG_GCC " ]; then
901
+ CC=" ${CC:- egcc} "
902
+ CXX=" ${CXX:- eg++} "
903
+ fi
904
+ fi
905
+ fi
906
+
888
907
# OS X 10.9, gcc is actually clang. This can cause some confusion in the build
889
908
# system, so if we find that gcc is clang, we should just use clang directly.
890
909
if [ $CFG_OSTYPE = apple-darwin -a -z " $CFG_ENABLE_CLANG " ]
You can’t perform that action at this time.
0 commit comments