New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing -lpthread flag #2861
Comments
I did check and SConstruct:1222-1225 is correctly identifying the platform as FreeBSD if env['PLATFORM'] == 'FreeBSD':
thread_suffix = ''
env.Append(LIBS = 'pthread') |
I changed the line above to add |
@pnorman can you test this patch: diff --git a/src/build.py b/src/build.py
index 8e86db7..a7a812b 100644
--- a/src/build.py
+++ b/src/build.py
@@ -113,6 +113,9 @@ if env['RUNTIME_LINK'] != 'static':
lib_env['LIBS'].append('z')
+if env['PLATFORM'] == 'FreeBSD':
+ lib_env['LIBS'].append('pthread')
+
if env['PLATFORM'] == 'Darwin':
mapnik_libname = env.subst(env['MAPNIK_LIB_NAME'])
if env['FULL_LIB_PATH']: |
I get a new error
Taking the long
|
Fixes mapnik#2861 with a patch from Dane
Configured with
./configure CXX=clang++ CC=clang HB_INCLUDES=/usr/local/include HB_LIBS=/usr/local/lib
Adding
-lpthread
to the clang++ command causes it to report success.The text was updated successfully, but these errors were encountered: