add -Wl,--as-needed to global cflags (all the profiles)
‘--as-needed’ is a linker option. It affects linking of dynamic
libraries which follow the ‘—as-needed’ flag on the linker command
line. Normally, the linker will generate a runtime dependency against
all dynamic libraries mentioned on command line regardless of whether
libraries are actually needed or not. ‘--as-needed’ option causes
dependency to be only emitted for a library that at that point in the
link.
Change-Id: Id7306902cfcb495825b9f708b55364479a8fb545
Signed-off-by: Dongkyun, Son <dongkyun.s@samsung.com>