23 lines
859 B
Plaintext
23 lines
859 B
Plaintext
$OpenBSD: patch-libproxy_CMakeLists_txt,v 1.9 2020/12/30 09:25:22 ajacoutot Exp $
|
|
|
|
Adding -pthread:
|
|
https://code.google.com/p/libproxy/issues/detail?id=196&thanks=196&ts=1370457244
|
|
|
|
Setting _POSIX_C_SOURCE unsets __BSD_VISIBLE by default, and several symbols
|
|
end up being hidden, resulting in build failure with clang.
|
|
https://svnweb.freebsd.org/ports/head/net/libproxy/files/patch-libproxy_CMakeLists.txt?revision=406680&view=markup
|
|
|
|
Index: libproxy/CMakeLists.txt
|
|
--- libproxy/CMakeLists.txt.orig
|
|
+++ libproxy/CMakeLists.txt
|
|
@@ -6,8 +6,7 @@ set_project_version(0 4 17)
|
|
if (WIN32)
|
|
add_definitions(-D_CRT_SECURE_NO_WARNINGS=1)
|
|
else(WIN32)
|
|
- add_definitions(-D_POSIX_C_SOURCE=200112L)
|
|
- set(CMAKE_CXX_FLAGS "-fvisibility=hidden ${CMAKE_CXX_FLAGS}")
|
|
+ set(CMAKE_CXX_FLAGS "-fvisibility=hidden -pthread ${CMAKE_CXX_FLAGS}")
|
|
endif(WIN32)
|
|
|
|
### Modules
|