-lGLESv1_CM -lGLESv2 -llog library flag set twice

Looking to the files in SDL
Android.mk
android-project\app\jni\src\Android.mk

LOCAL_LDLIBS has -lGLESv1_CM -lGLESv2 -llog in both these files.

Why we need include this libraries twice?

First time when we build SDL libSDL2.so and second time when we build app shared library libmain.so?