Commit 2bdb2780 authored by Emmanuel Thomé's avatar Emmanuel Thomé

disable antebuffer on freebsd

parent 9dfeec56
......@@ -417,6 +417,8 @@ declare_usage (param_list pl)
param_list_decl_usage (pl, "lpbs", "large primes bounds (comma-separated list) "
"(for MNFS)");
param_list_decl_usage (pl, "v", "(switch) more verbose output");
param_list_decl_usage(pl, "force-posix-threads", "(switch)");
param_list_decl_usage(pl, "path_antebuffer", "path to antebuffer program");
}
static void
......@@ -443,6 +445,7 @@ main (int argc, char * argv[])
param_list_configure_switch(pl, "fixit", &fix_it);
param_list_configure_switch(pl, "v", &verbose);
param_list_configure_switch(pl, "check_primality", &check_primality);
param_list_configure_switch(pl, "force-posix-threads", &filter_rels_force_posix_threads);
#ifdef HAVE_MINGW
_fmode = _O_BINARY; /* Binary open for all files */
......
......@@ -54,13 +54,11 @@ if(ENABLE_SHARED)
install(TARGETS utils utils_with_io DESTINATION ${LIBSUFFIX}/utils)
endif()
# To avoid the warning: implicit declaration of function nanosleep. It's POSIX, non c99.
set (CMAKE_OLD_C_FLAGS "${CMAKE_C_FLAGS}")
set (CMAKE_C_FLAGS "prout -D _POSIX_C_SOURCE=200809L ${CMAKE_C_FLAGS}")
add_executable(antebuffer antebuffer.c timing.cpp memusage.c)
set (CMAKE_C_FLAGS "${CMAKE_OLD_C_FLAGS}")
target_link_libraries(antebuffer pthread)
if(NOT CMAKE_SYSTEM_NAME EQUAL "FreeBSD")
# https://gforge.inria.fr/tracker/index.php?func=detail&aid=21410&group_id=2065&atid=7442
add_executable(antebuffer antebuffer.c timing.cpp memusage.c)
target_link_libraries(antebuffer pthread)
endif()
install(TARGETS antebuffer RUNTIME DESTINATION ${LIBSUFFIX}/utils)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment