summaryrefslogtreecommitdiff
path: root/odk/CppunitTest_odk_checkapi.mk
diff options
context:
space:
mode:
Diffstat (limited to 'odk/CppunitTest_odk_checkapi.mk')
-rw-r--r--odk/CppunitTest_odk_checkapi.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/odk/CppunitTest_odk_checkapi.mk b/odk/CppunitTest_odk_checkapi.mk
index 22dad8cab62a..1c93be6a2473 100644
--- a/odk/CppunitTest_odk_checkapi.mk
+++ b/odk/CppunitTest_odk_checkapi.mk
@@ -28,6 +28,12 @@ $(eval $(call gb_CppunitTest_set_external_code,odk_checkapi))
$(eval $(call gb_CppunitTest_set_include,odk_checkapi, \
-I$(INSTDIR)/$(SDKDIRNAME)/include $(SOLARINC)))
+ifeq ($(OS),LINUX)
+$(eval $(call gb_CppunitTest_add_libs,odk_checkapi,\
+ -ldl \
+))
+endif
+
$(eval $(call gb_CppunitTest_use_custom_headers,odk_checkapi,\
odk/allheaders \
))