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
1 changed files with 2 additions and 0 deletions

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',