configure.ac: add --no-as-needed to LDFLAGS
authorU. Artie Eoff <ullysses.a.eoff@intel.com>
Wed, 20 Feb 2013 00:21:55 +0000 (16:21 -0800)
committerU. Artie Eoff <ullysses.a.eoff@intel.com>
Wed, 20 Feb 2013 00:21:55 +0000 (16:21 -0800)
The registration of the core, efl, etc... tests
are done at runtime when those particular libraries (shared libs)
are loaded.  Ubuntu does lazy loading of shared libraries, however
our test libraries aren't explicitly used/called into from wfits...
i.e. it relies on being loaded at startup.  Therefore, we need
to pass -Wl,--no-as-needed to the linker so that we get the correct
behavior on Ubuntu (i.e. bypass laziness).

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
Signed-off-by: Brian Lovin <brian.j.lovin@intel.com>
configure.ac

index ab8cdc0..9c40466 100644 (file)
@@ -19,6 +19,8 @@ AC_PROG_CC
 LT_PREREQ([2.2])
 LT_INIT
 
+LDFLAGS="-Wl,--no-as-needed"
+
 PKG_CHECK_MODULES([CHECK], [check >= 0.9.8])
 PKG_CHECK_MODULES(CAIRO, [cairo >= 1.10.0])
 PKG_CHECK_MODULES(WAYLAND, [wayland-client wayland-egl])