Fix non-ARM builds - use the proper way to reference libraries

Change-Id: Ibd84af84861d1cbaa8203e4b287cb20f5e9027a0
diff --git a/jni/Android.mk b/jni/Android.mk
index a4fb844..e86ec8d 100644
--- a/jni/Android.mk
+++ b/jni/Android.mk
@@ -9,10 +9,11 @@
 ifeq ($(TARGET_ARCH), arm)
         LOCAL_NDK_VERSION := 5
         LOCAL_SDK_VERSION := 9
+        LOCAL_LDFLAGS :=  -llog -lEGL
+else
+        LOCAL_SHARED_LIBRARIES :=  liblog libEGL
 endif
 
-LOCAL_LDFLAGS :=  -llog -lEGL
-
 LOCAL_MODULE_TAGS := optional
 
 LOCAL_MODULE := libjni_eglfence