xref: /OK3568_Linux_fs/buildroot/package/aumix/0001-fix-incorrect-makefile-am.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1Aumix's src/Makefile.am incorrect adds @includedir@ to the list of
2include paths and @libdir@ to the list of libraries paths. This is
3incorrect, as @includedir@ and @libdir@ are respectively /usr/include
4and /usr/lib, even in cross-compilation mode.
5
6At the same time, use AM_CFLAGS instead of CFLAGS, as is done on the
7similar patch found in OpenEmbedded.
8
9Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10---
11 src/Makefile.am |    5 ++---
12 1 file changed, 2 insertions(+), 3 deletions(-)
13
14Index: aumix-2.8/src/Makefile.am
15===================================================================
16--- aumix-2.8.orig/src/Makefile.am
17+++ aumix-2.8/src/Makefile.am
18@@ -9,9 +9,8 @@
19 		mouse.c common.h curses.h gpm-xterm.h gtk.h interactive.h  \
20 		mouse.h play.xpm record.xpm
21 localedir	= $(datadir)/locale
22-INCLUDES	= -I../intl -DLOCALEDIR=\"$(localedir)\" -I@includedir@
23+INCLUDES	= -I../intl -DLOCALEDIR=\"$(localedir)\"
24 AM_CFLAGS	= @CFLAGS@ @GLIB_CFLAGS@ @GTK_CFLAGS@
25-LDADD		= -L@libdir@
26 LIBS		= @LIBS@ @GTK_LIBS@ @LIBINTL@
27 DEFS		= @DEFS@
28
29