Skip to content

Commit beeb71d

Browse files
author
Jean-Baptiste Queru
committed
fix build
Change-Id: Iccb40c8c5df879288f35e0940c721d306fb75c12
1 parent 862438e commit beeb71d

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

drm/jni/Android.mk

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,13 @@ LOCAL_SHARED_LIBRARIES := \
2626
libutils \
2727
libandroid_runtime \
2828
libnativehelper \
29-
libbinder \
30-
libdl
29+
libbinder
30+
31+
ifeq ($(TARGET_SIMULATOR),true)
32+
LOCAL_LDLIBS += -ldl
33+
else
34+
LOCAL_SHARED_LIBRARIES += libdl
35+
endif
3136

3237
LOCAL_STATIC_LIBRARIES :=
3338

drm/libdrmframework/Android.mk

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,13 @@ LOCAL_MODULE:= libdrmframework
2525

2626
LOCAL_SHARED_LIBRARIES := \
2727
libutils \
28-
libbinder \
29-
libdl
28+
libbinder
29+
30+
ifeq ($(TARGET_SIMULATOR),true)
31+
LOCAL_LDLIBS += -ldl
32+
else
33+
LOCAL_SHARED_LIBRARIES += libdl
34+
endif
3035

3136
LOCAL_STATIC_LIBRARIES := \
3237
libdrmframeworkcommon

0 commit comments

Comments
 (0)