commit c027286e6f106e1d92a9acbc1f2c0f9351b126c1 parent ff37a4867ba1c52fe75d89d16b1c70c4d0f3498a Author: fundamental <mark.d.mccurry@gmail.com> Date: Thu, 7 Sep 2017 15:08:07 -0400 Add Workaround For GCC 4.8 Linker Bug Diffstat:
M | src/Tests/CMakeLists.txt | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/Tests/CMakeLists.txt b/src/Tests/CMakeLists.txt @@ -29,7 +29,8 @@ CXXTEST_ADD_TEST(MemoryStressTest MemoryStressTest.cpp #Extra libraries added to make test and full compilation use the same library #links for quirky compilers -set(test_lib zynaddsubfx_core ${GUI_LIBRARIES} ${ZLIB_LIBRARY} ${FFTW_LIBRARIES} ${MXML_LIBRARIES} pthread) +set(test_lib zynaddsubfx_core ${GUI_LIBRARIES} ${ZLIB_LIBRARY} ${FFTW_LIBRARIES} + ${MXML_LIBRARIES} pthread "-Wl,--no-as-needed -lpthread") message(STATUS "Linking tests with: ${test_lib}") target_link_libraries(ADnoteTest ${test_lib})