shared-macros.mk: drop support for 32 bit mysql
[oi-userland.git] / components / sysutils / upower / patches / 01-as-needed.patch
blob343245801cc61ff34e78a7dde7ebe94ca04c4988
1 --- upower-0.99.4/configure.ac.1 2017-12-22 13:18:00.954079517 +0000
2 +++ upower-0.99.4/configure.ac 2017-12-22 13:26:13.332598522 +0000
3 @@ -225,7 +225,12 @@
4 AM_CONDITIONAL(UP_BUILD_TESTS, test x$enable_tests = xyes)
6 if test "x$GCC" = "xyes"; then
7 - LDFLAGS="-Wl,--as-needed $LDFLAGS"
8 + AC_MSG_CHECKING([if linker accepts --as-needed flag])
9 + save_LDFLAGS="$LDFLAGS"
10 + LDFLAGS="-Wl,--as-needed $LDFLAGS"
11 + AC_TRY_LINK([#include <stdio.h>], [int i=0; return i;], [AC_MSG_RESULT(yes)], [
12 + AC_MSG_RESULT(no)
13 + LDFLAGS="$save_LDFLAGS"])
16 # i18n support