|
|
|
@ -32,15 +32,15 @@ if(MINGW) |
|
|
|
|
# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40838 |
|
|
|
|
# here we are trying to workaround the problem |
|
|
|
|
include(CheckCXXCompilerFlag) |
|
|
|
|
# CHECK_CXX_COMPILER_FLAG(-mstackrealign HAVE_STACKREALIGN_FLAG) |
|
|
|
|
# if(HAVE_STACKREALIGN_FLAG) |
|
|
|
|
# set(OPENCV_EXTRA_C_FLAGS "${OPENCV_EXTRA_C_FLAGS} -mstackrealign") |
|
|
|
|
#else() |
|
|
|
|
CHECK_CXX_COMPILER_FLAG(-mstackrealign HAVE_STACKREALIGN_FLAG) |
|
|
|
|
if(HAVE_STACKREALIGN_FLAG) |
|
|
|
|
set(OPENCV_EXTRA_C_FLAGS "${OPENCV_EXTRA_C_FLAGS} -mstackrealign") |
|
|
|
|
else() |
|
|
|
|
CHECK_CXX_COMPILER_FLAG(-mpreferred-stack-boundary=2 HAVE_PREFERRED_STACKBOUNDARY_FLAG) |
|
|
|
|
if(HAVE_PREFERRED_STACKBOUNDARY_FLAG) |
|
|
|
|
set(OPENCV_EXTRA_C_FLAGS "${OPENCV_EXTRA_C_FLAGS} -mstackrealign") |
|
|
|
|
endif() |
|
|
|
|
#endif() |
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
if(CMAKE_COMPILER_IS_GNUCXX) |
|
|
|
|