diff --git a/recipes/ncbi-fcs-gx/meta.yaml b/recipes/ncbi-fcs-gx/meta.yaml index 2ed106374b726..e1f67d2619dea 100644 --- a/recipes/ncbi-fcs-gx/meta.yaml +++ b/recipes/ncbi-fcs-gx/meta.yaml @@ -26,7 +26,7 @@ requirements: - grep >=3.4 build: - number: 2 + number: 3 skip: True # [not linux or not x86_64] run_exports: - {{ pin_compatible('ncbi-fcs-gx', max_pin="0.5") }} diff --git a/recipes/ncbi-fcs-gx/no_static.patch b/recipes/ncbi-fcs-gx/no_static.patch index 3d09172fa9770..8d8e22f22579e 100644 --- a/recipes/ncbi-fcs-gx/no_static.patch +++ b/recipes/ncbi-fcs-gx/no_static.patch @@ -1,13 +1,10 @@ -diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt -index b2d24ff..007a3ac 100644 ---- a/src/CMakeLists.txt -+++ b/src/CMakeLists.txt -@@ -32,7 +32,7 @@ include_directories(${PROJECT_SOURCE_DIR}/include/) +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -5,6 +5,6 @@ + set(gx_VERSION_MINOR 0) - set_source_files_properties(main.cpp PROPERTIES COMPILE_FLAGS "-DGIT_REVISION=`../../build-support/git_describe.sh`") + set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS} -O0 -ggdb3 -DDEBUG") +-set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS} -static -O2 -DNDEBUG") # TODO: investigate whether can/should enable -march=x86-64-v4 ++set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS} -O2 -DNDEBUG") # TODO: investigate whether can/should enable -march=x86-64-v4 --link_libraries("-flto -pthread -Wl,--format=binary -Wl,../../LICENSE -Wl,--format=default") # see show-license command in main.cpp -+link_libraries("-flto -Wl,--whole-archive -lrt -lpthread -Wl,--no-whole-archive -Wl,--format=binary -Wl,../../LICENSE -Wl,--format=default") # see show-license command in main.cpp - - #add_compile_options(-fsanitize=address) - #add_link_options(-fsanitize=address) + add_subdirectory(src)