First time here? Check out the FAQ!
answered 2018-08-06 01:19:52 -0600
First try to make a static build by setting -DBUILD_SHARED_LIBS=OFF, and not adding compiler options.
-DBUILD_SHARED_LIBS=OFF
Second check this place for explicitly added linker libraries and try adding a branch specific for your configuration.