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