File: gcc9.patch

package info (click to toggle)
bbtime 0.1.5-18
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 564 kB
  • sloc: cpp: 4,175; sh: 327; makefile: 27
file content (19 lines) | stat: -rw-r--r-- 684 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Author: Reiner Herrmann <reiner@reiner-h.de>
Description: Fix build with GCC9
 Libraries need to be specified at the end of the command line.
 This is done automatically by appending it to LIBS instead of LDFLAGS.
 .
 This also fixes building with ld --as-needed (#631747).
Bug-Debian: https://bugs.debian.org/925636

--- a/configure.in
+++ b/configure.in
@@ -51,7 +51,7 @@
 CXXFLAGS="$CXXFLAGS $X_CFLAGS"
 LDFLAGS="$LDFLAGS $X_LIBS $X_PRE_LIBS"
 dnl Checks for X libraries.
-AC_CHECK_LIB(X11, XOpenDisplay, LDFLAGS="$LDFLAGS -lX11",
+AC_CHECK_LIB(X11, XOpenDisplay, LIBS="$LIBS -lX11",
              AC_MSG_ERROR(XOpenDisplay not found in -lX11))
 
 LDFLAGS="$LDFLAGS $X_EXTRA_LIBS"