File: extra_gui_libraries

package info (click to toggle)
mah-jong 1.11-2
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 3,112 kB
  • ctags: 2,380
  • sloc: ansic: 27,831; perl: 393; makefile: 298; sh: 122
file content (17 lines) | stat: -rw-r--r-- 746 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Add libm to the libraries used by xmj.
 xmj directly uses some symbols from libm (hypot and trunc) but does not
 directly link with that library. This leads to a build failure with
 binutils-gold. Explicitely link with libm to avoid that build failure.
Bug-Debian: http://bugs.debian.org/555582
Author: Nicolas Boullis <nboullis@debian.org>
--- a/Makefile.in
+++ b/Makefile.in
@@ -155,7 +155,7 @@
 # Not Windows. If gtk+ is properly installed, this is all that's needed.
 ifdef Gtk
 EXTRA_INCLUDES=`pkg-config --cflags gtk+-$(Gtk)`
-GUILIBS=-lgtk-x11-2.0 -lgdk-x11-2.0 -lgobject-2.0 -lglib-2.0
+GUILIBS=-lgtk-x11-2.0 -lgdk-x11-2.0 -lgobject-2.0 -lglib-2.0 -lm
 else
 EXTRA_INCLUDES=`gtk-config --cflags`
 GUILIBS=`gtk-config --libs`