userland: Add '--no-as-needed' linker flag
userland: Add '--no-as-needed' linker flag

This is done to ensure all specified shared libraries are linked against
applications (e.g. raspivid)i.

libmmal_vc_client.so makes use of __attribute__(constructor) to ensure
that supplier components (e.g. camera) are loaded when the static library is
loaded.

raspivid, and possibly other applications, link against libmmal_vc_client.so,
causing the ctor to execute, but there is no needed dependency.

Some build environments (e.g. Yocto/OpenEmbedded) pass the '--no-as-needed'
linker flag which removes the dependency on libmmal_vc_client and thus
components are not registered.

In this situation raspivid then gives an error of the form
  root@raspberrypi:~# raspivid -o test
  mmal: mmal_component_create_core: could not find component 'vc.ril.camera'
  mmal: Failed to create camera component
  mmal: main: Failed to create camera component
  mmal: Failed to run camera app. Please check for firmware updates

For further details see:
https://lists.yoctoproject.org/pipermail/yocto/2014-June/019933.html

Change-Id: I9d787fd83379e8b6428dde3827395c8b96be1f7f
Signed-off-by: Alex J Lennon <9144733ce5024db3ef1cb59f3adc4521f5dd0f7a@dynamicdevices.co.uk>
Acked-by: Andrei Gherzan <8dc7c09356db0b1762fb140617d7375c0a5a4131@gherzan.ro>

pficheux/meta-raspberrypi,thiagoss/meta-raspberrypi,thiagoss/meta-raspberrypi,gbraad/yocto-meta-raspi,ThomArmax/meta-raspberrypi,agherzan/meta-raspberrypi,LocutusOfBorg/meta-raspberrypi,VCTLabs/meta-raspberrypi,VCTLabs/meta-raspberrypi,hwh7/meta-raspberrypi,hwh7/meta-raspberrypi,MCherifiOSS/s-osg-meta-raspberrypi,MCherifiOSS/meta-raspberrypi,LocutusOfBorg/meta-raspberrypi,rofehr/meta-raspberrypi,ajlennon/meta-raspberrypi,d21d3q/meta-raspberrypi,leon-anavi/meta-raspberrypi,ThomArmax/meta-raspberrypi,rofehr/meta-raspberrypi,kovrov/meta-raspberrypi,gbraad/yocto-meta-raspi,wware/meta-raspberrypi,kraj/meta-raspberrypi,leon-anavi/meta-raspberrypi,cocoonlife/meta-raspberrypi,ajlennon/meta-raspberrypi,gbraad/yocto-meta-raspi,d21d3q/meta-raspberrypi,hwh7/meta-raspberrypi,gbraad/yocto-meta-raspi,wware/meta-raspberrypi,MCherifiOSS/meta-raspberrypi,ThomArmax/meta-raspberrypi,toolmmy/meta-raspberrypi,pficheux/meta-raspberrypi,schnitzeltony/meta-raspberrypi,leon-anavi/meta-raspberrypi-testsand,git4vijay/meta-raspberrypi,leon-anavi/meta-raspberrypi-testsand,amirna2/meta-raspberry,thiagoss/meta-raspberrypi,leon-anavi/meta-raspberrypi-testsand,LocutusOfBorg/meta-raspberrypi,schnitzeltony/meta-raspi-light,git4vijay/meta-raspberrypi,ajlennon/meta-raspberrypi,git4vijay/meta-raspberrypi2,leon-anavi/meta-raspberrypi-testsand,cocoonlife/meta-raspberrypi,agherzan/meta-raspberrypi,toolmmy/meta-raspberrypi,pficheux/meta-raspberrypi,ThomArmax/meta-raspberrypi,rofehr/meta-raspberrypi,git4vijay/meta-raspberrypi,VCTLabs/meta-raspberrypi,toolmmy/meta-raspberrypi,hwh7/meta-raspberrypi,git4vijay/meta-raspberrypi2,schnitzeltony/meta-raspberrypi,leon-anavi/meta-raspberrypi,agherzan/meta-raspberrypi,amirna2/meta-raspberry,LocutusOfBorg/meta-raspberrypi,git4vijay/meta-raspberrypi,d21d3q/meta-raspberrypi,kraj/meta-raspberrypi,MCherifiOSS/s-osg-meta-raspberrypi,amirna2/meta-raspberry,VCTLabs/meta-raspberrypi,schnitzeltony/meta-raspberrypi,kovrov/meta-raspberrypi,agherzan/meta-raspberrypi,agherzan/meta-raspberrypi,pficheux/meta-raspberrypi,MCherifiOSS/s-osg-meta-raspberrypi,schnitzeltony/meta-raspi-light,ajlennon/meta-raspberrypi,d21d3q/meta-raspberrypi,MCherifiOSS/s-osg-meta-raspberrypi,kovrov/meta-raspberrypi,agherzan/meta-raspberrypi,rofehr/meta-raspberrypi,kraj/meta-raspberrypi,git4vijay/meta-raspberrypi2,toolmmy/meta-raspberrypi,git4vijay/meta-raspberrypi2,thiagoss/meta-raspberrypi