]> Pileus Git - ~andy/sunrise/blob - dev-libs/libwiimote/files/libwiimote-9999-ldflags.patch
dev-libs/libwiimote: Add patch to build with --as-needed LDFLAGS
[~andy/sunrise] / dev-libs / libwiimote / files / libwiimote-9999-ldflags.patch
1 Index: test/Makefile.am
2 ===================================================================
3 --- test/Makefile.am    (Revision 80)
4 +++ test/Makefile.am    (Arbeitskopie)
5 @@ -1,4 +1,3 @@
6  AM_CFLAGS = -I../src -D_ENABLE_TILT -lm
7  LDADD = ../src/libcwiimote.la
8  noinst_PROGRAMS= test1 test2 test3 test4
9 -
10 Index: configure.ac
11 ===================================================================
12 --- configure.ac        (Revision 80)
13 +++ configure.ac        (Arbeitskopie)
14 @@ -5,22 +5,26 @@
15  AC_INIT([libwiimote], [0.4.0], [http://sourceforge.net/projects/libwiimote/])
16  AC_CONFIG_HEADER([config.h])
17  
18 -
19  VERSION=0.4.0
20  PACKAGE=libcwiimote
21  
22  AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
23  
24  # Checks for programs.
25 +AC_PROG_CXX
26  AC_PROG_CC
27 +AC_PROG_CPP
28  AC_PROG_INSTALL
29 -AC_PROG_LIBTOOL
30 +AC_PROG_LN_S
31 +AC_PROG_MAKE_SET
32  AC_SUBST(LIBTOOL_DEPS)
33  AM_PROG_LIBTOOL
34  
35  # Checks for libraries.
36  AC_CHECK_LIB([bluetooth], [hci_remote_name],
37 -             [], [AC_MSG_ERROR([We require BlueZ])])
38 +             [], [AC_MSG_ERROR([BlueZ library required, available at http://www.bluez.org/])])
39 +AC_CHECK_LIB([m], [asin],
40 +             [], [AC_MSG_ERROR([libm required])])
41  
42  # Checks for header files.
43  AC_HEADER_STDC
44 @@ -45,7 +49,7 @@
45  AC_CONFIG_FILES([Makefile
46                   src/Makefile
47                   test/Makefile
48 -                libwiimote.pc])
49 +                 libwiimote.pc])
50  AC_OUTPUT
51  echo
52  echo $PACKAGE v$VERSION