2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-16 23:19:50 +01:00

Add -pthread to link jni programs on FreeBSD

This commit is contained in:
Thomas Nagy 2016-06-19 11:26:25 +02:00
parent 59be2b56c0
commit ed7e2f5016
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64

View File

@ -440,6 +440,8 @@ def check_jni_headers(conf):
if f:
libDirs = [[x, y.parent.abspath()] for x in libDirs for y in f]
if conf.env.DEST_OS == 'freebsd':
conf.env.append_unique('LINKFLAGS_JAVA', '-pthread')
for d in libDirs:
try:
conf.check(header_name='jni.h', define_name='HAVE_JNI_H', lib='jvm',