Fixed the linking of the BMWlibs under Cygwin by adding explicitly "-lgomp" to the linker-flags

which seems to be necessary for Cygwin and does not hurt under GNU/Linux.
This commit is contained in:
Bastian M. Wojek
2011-01-26 19:22:27 +00:00
parent 20f61a8c2c
commit a89c70ae84
2 changed files with 2 additions and 1 deletions

View File

@ -490,7 +490,7 @@ if test "${BUILD_BMW_LIBS}" = "1"; then
SAVED_CXXFLAGS="$CXXFLAGS"
CXXFLAGS="$CXXFLAGS -fopenmp"
SAVED_LIBSS="$LIBS"
LIBS="$LIBS -fopenmp"
LIBS="$LIBS -fopenmp -lgomp"
AC_SEARCH_LIBS([omp_get_num_procs], [gomp], [AC_DEFINE([HAVE_GOMP], [1], [Define to 1 if gomp is available])],
[CXXFLAGS="$SAVED_CXXFLAGS" LIBS="$SAVED_LIBS"], [])
fi