Thread: Request - Boron
View Single Post
Posts: 78 | Thanked: 57 times | Joined on Jul 2007
#6
Hi Philip,

The Boron developer sent the following suggestion.

Thanks again,
John


The eventfd man page says it is available since Linux 2.6.22 and glibc 2.8.
If this API is not available you can disable threads by setting thread: false
in the project.b file or apply the following patch to CMakeLists.txt if you
build that way.

I don't know anything about a link.txt file, so I'm afraid I can't help you
with that.


diff --git a/CMakeLists.txt b/CMakeLists.txt
index b19da15..4a28204 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -20,7 +20,7 @@ add_definitions(
-DCONFIG_COMPRESS=1
-DCONFIG_RANDOM
# -DCONFIG_TIMECODE
- -DCONFIG_THREAD
+# -DCONFIG_THREAD
)

if(CMAKE_BUILD_TYPE STREQUAL "Debug")
@@ -64,7 +64,7 @@ add_library(boron-lib SHARED
boron.c
port_file.c
port_socket.c
- port_thread.c
+# port_thread.c
${OS_FILE}
)

@@ -78,7 +78,7 @@ if (APPLE)
# target_link_libraries(boron-lib m bz2)
endif ()
if (UNIX AND NOT APPLE)
- target_link_libraries(boron-lib m z pthread)
+ target_link_libraries(boron-lib m z)
# target_link_libraries(boron-lib m bz2 pthread)
endif ()
if (WIN32)


-Karl