Commit 78dcb428 authored by Alexander Shishkov's avatar Alexander Shishkov

fixed compilation on Linux in static case

parent d40b37db
...@@ -1066,9 +1066,10 @@ if(MSVC) ...@@ -1066,9 +1066,10 @@ if(MSVC)
endif() endif()
# Extra link libs if the user selects building static libs: # Extra link libs if the user selects building static libs:
IF(NOT BUILD_SHARED_LIBS) if(NOT BUILD_SHARED_LIBS)
if(CMAKE_COMPILER_IS_GNUCXX) if(CMAKE_COMPILER_IS_GNUCXX)
set(OPENCV_LINKER_LIBS ${OPENCV_LINKER_LIBS} stdc++) set(OPENCV_LINKER_LIBS ${OPENCV_LINKER_LIBS} stdc++)
set(OPENCV_EXTRA_C_FLAGS "${OPENCV_EXTRA_C_FLAGS} -fPIC")
endif() endif()
endif() endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment