IOT-2495 Fixed linking issue with BT connectivity 11/21411/3
authorGeorge Nash <george.nash@intel.com>
Wed, 12 Jul 2017 22:56:56 +0000 (15:56 -0700)
committerRick Bell <richard.s.bell@intel.com>
Tue, 18 Jul 2017 15:56:01 +0000 (15:56 +0000)
The library connectivity_abstraction_internal does not work
for android if bluetooth is used. It must be linked with
connectivity_abstraction.
Windows still needs to link against
connectivity_abstraction_internal.

Bug: https://jira.iotivity.org/browse/IOT-2495

Change-Id: I357969543313199615ceac3b3b5e5b9f6b7f4b48
Signed-off-by: George Nash <george.nash@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/21411
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Larry Sachs <larry.j.sachs@intel.com>
Reviewed-by: Md. Adnan Sami <adnan.sami@samsung.com>
Reviewed-by: Rick Bell <richard.s.bell@intel.com>
java/jni/SConscript

index 09559d2..3b1c0d9 100644 (file)
@@ -95,15 +95,18 @@ jni_env.PrependUnique(LIBS=[
     'oc_logger_internal',
     'coap',
     'octbstack_internal',
-    'connectivity_abstraction_internal',
     'ocsrm',
     'routingmanager'
 ])
 
 if target_os not in ['windows', 'winrt']:
-    jni_env.PrependUnique(LIBS=['oc_internal'])
+    jni_env.PrependUnique(LIBS=[
+        jni_env['LIBPREFIX'] + 'connectivity_abstraction' + jni_env['LIBSUFFIX'],
+        'oc_internal'
+    ])
 else:
     jni_env.PrependUnique(LIBS=[
+        'connectivity_abstraction_internal',
         'oc',
         'mbedcrypto',
         'resource_directory_internal',