Commit e8237e2b02d11d7a6d9353106cce958a5749ed14

Ryan C. Gordon 2018-06-24T15:21:01

android: Android.mk should only preserve debug symbols in debug builds. Fixes Bugzilla #4111.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/Android.mk b/Android.mk
index d56b5c0..976cbab 100644
--- a/Android.mk
+++ b/Android.mk
@@ -51,7 +51,9 @@ LOCAL_SRC_FILES := \
 LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES
 LOCAL_LDLIBS := -ldl -lGLESv1_CM -lGLESv2 -llog -landroid
 
-cmd-strip := 
+ifeq ($(NDK_DEBUG),1)
+    cmd-strip :=
+endif
 
 include $(BUILD_SHARED_LIBRARY)