summaryrefslogtreecommitdiff
path: root/external/python3
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-07-01 13:02:23 +0200
committerMichael Stahl <mstahl@redhat.com>2016-07-01 13:09:00 +0200
commite31914d7f4588c475c5d59ffbc0187503967591d (patch)
tree1b5af67407b4e03575a72b0bae0e087e197a6ca2 /external/python3
parentca6592c0ae5de338e48cb0d999468548859b4af1 (diff)
python3: override LINKCC properly, it needs -pthread
Build on Fedora 24 fails with "Python/thread.o: undefined reference to symbol 'pthread_key_delete@@GLIBC_2.0'" Change-Id: If23838722e1cd0220c509d25932ae0539e8da7a1
Diffstat (limited to 'external/python3')
-rw-r--r--external/python3/ExternalProject_python3.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/external/python3/ExternalProject_python3.mk b/external/python3/ExternalProject_python3.mk
index 76f8d886b314..38ed6700435e 100644
--- a/external/python3/ExternalProject_python3.mk
+++ b/external/python3/ExternalProject_python3.mk
@@ -81,7 +81,7 @@ $(call gb_ExternalProject_get_state_target,python3,build) :
$(if $(SYSBASE), -I$(SYSBASE)/usr/include) \
)" \
$(if $(python3_cflags),CFLAGS='$(python3_cflags)') \
- $(if $(filter -fsanitize=%,$(CC)),LINKCC="$(CXX)") \
+ $(if $(filter -fsanitize=%,$(CC)),LINKCC="$(CXX) -pthread") \
LDFLAGS="$(strip $(LDFLAGS) \
$(if $(SYSTEM_OPENSSL),,-L$(call gb_UnpackedTarball_get_dir,openssl)) \
$(if $(SYSTEM_EXPAT),,-L$(gb_StaticLibrary_WORKDIR)) \