bbdate-0.2.4-as-needed.patch 619 B

12345678910111213141516171819202122
  1. Reason: Correct lib and ldflags ordering, fixes --as-needed.
  2. Upstream: No.
  3. --- bbdate-0.2.4/configure.in
  4. +++ bbdate-0.2.4/configure.in
  5. @@ -47,12 +47,13 @@
  6. CFLAGS="$CFLAGS $X_CFLAGS"
  7. CXXFLAGS="$CXXFLAGS $X_CFLAGS"
  8. -LDFLAGS="$LDFLAGS $X_LIBS $X_PRE_LIBS"
  9. +LDFLAGS="$LDFLAGS"
  10. +LIBS="$X_LIBS $X_PRE_LIBS"
  11. dnl Checks for X libraries.
  12. -AC_CHECK_LIB(X11, XOpenDisplay, LDFLAGS="$LDFLAGS -lX11",
  13. +AC_CHECK_LIB(X11, XOpenDisplay, LIBS="$LIBS -lX11",
  14. AC_MSG_ERROR(XOpenDisplay not found in -lX11))
  15. -LDFLAGS="$LDFLAGS $X_EXTRA_LIBS"
  16. +LIBS="$LIBS $X_EXTRA_LIBS"
  17. dnl Checks for header files.
  18. AC_HEADER_STDC