diff --git a/Opcodes/CMakeLists.txt b/Opcodes/CMakeLists.txt index 53fe38573..e009e2346 100644 --- a/Opcodes/CMakeLists.txt +++ b/Opcodes/CMakeLists.txt @@ -47,7 +47,7 @@ find_library(P5GLOVE_LIB p5glove) if(BUILD_FAUST_OPCODES) find_package(LLVM) exec_program(llvm-config ARGS --libs OUTPUT_VARIABLE LLVM_LIBS) -find_library(FAUST_LIBRARY faust.a HINTS /usr/local/lib) +find_library(FAUST_LIBRARY libfaust.a HINTS /usr/local/lib) endif() ## OPCODE LIBS WITH NO EXTERNAL DEPENDENCIES ## @@ -286,9 +286,9 @@ endif() check_deps(BUILD_FAUST_OPCODES LLVM_FOUND FAUST_LIBRARY) if(BUILD_FAUST_OPCODES) make_plugin(faustcsound faustgen.cpp) - target_link_libraries(faustcsound -lcrypto) - target_link_libraries(faustcsound -lcurses) - target_link_libraries(faustcsound -lz) + target_link_libraries(faustcsound -Wl,-no-as-needed -lcrypto) + target_link_libraries(faustcsound -Wl,-no-as-needed -lcurses) + target_link_libraries(faustcsound -Wl,-no-as-needed -lz) target_link_libraries(faustcsound ${PTHREAD_LIBRARY}) if(APPLE) if(${OSX_VERSION} STREQUAL "10.6") Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here