diff options
Diffstat (limited to 'Mk/bsd.cmake.mk')
-rw-r--r-- | Mk/bsd.cmake.mk | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Mk/bsd.cmake.mk b/Mk/bsd.cmake.mk index 3bfad7cc03bd..eeb895b6e1ec 100644 --- a/Mk/bsd.cmake.mk +++ b/Mk/bsd.cmake.mk @@ -60,6 +60,9 @@ CMAKE_ARGS+= -DCMAKE_C_COMPILER:STRING="${CC}" \ -DCMAKE_CXX_FLAGS_RELEASE:STRING="${CXXFLAGS}" \ -DCMAKE_INSTALL_PREFIX:PATH="${CMAKE_INSTALL_PREFIX}" \ -DCMAKE_BUILD_TYPE:STRING="${CMAKE_BUILD_TYPE}" \ + -DCMAKE_EXE_LINKER_FLAGS="${LDFLAGS}" \ + -DCMAKE_SHARED_LINKER_FLAGS="${LDFLAGS}" \ + -DCMAKE_MODULE_LINKER_FLAGS="${LDFLAGS}" \ -DTHREADS_HAVE_PTHREAD_ARG:BOOL=YES # @@ -88,10 +91,10 @@ PLIST_SUB+= CMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE:L}" .if defined(CMAKE_USE_PTHREAD) CFLAGS+= ${PTHREAD_CFLAGS} CXXFLAGS+= ${PTHREAD_CFLAGS} +LDFLAGS+= ${PTHREAD_LIBS} CMAKE_ARGS+= -DCMAKE_THREAD_LIBS:STRING="${PTHREAD_LIBS}" \ - -DCMAKE_USE_PTHREADS:BOOL=ON \ - -DCMAKE_EXE_LINKER_FLAGS:STRING="${PTHREAD_LIBS}" + -DCMAKE_USE_PTHREADS:BOOL=ON .endif # |