OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

135 lines
5.1 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../fusionsound/build-fix.patch
  5. # Copyright (C) 2010 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. From: Ville Syrjala <syrjala@sci.fi>
  17. Date: Tue, 21 Oct 2008 13:17:46 +0000 (+0300)
  18. Subject: Fix build with LDFLAGS="-Wl,-no-undefined".
  19. X-Git-Url: http://git.directfb.org/?p=core%2FFusionSound.git;a=commitdiff_plain;h=215457b66c687a64af1bd7e27f5df28bc9c51853
  20. Fix build with LDFLAGS="-Wl,-no-undefined".
  21. ---
  22. diff --git a/configure.in b/configure.in
  23. index e827300..322f0d6 100644
  24. --- a/configure.in
  25. +++ b/configure.in
  26. @@ -216,6 +216,8 @@ DIRECT_REQUIRED_VERSION=1.1.0
  27. AC_MSG_CHECKING(for libdirect)
  28. if $PKG_CONFIG --atleast-version $DIRECT_REQUIRED_VERSION direct ; then
  29. + DIRECT_CFLAGS=`$PKG_CONFIG --cflags direct`
  30. + DIRECT_LIBS=`$PKG_CONFIG --libs direct`
  31. MODULEDIR=$libdir/`$PKG_CONFIG --variable=moduledirname direct`
  32. AC_MSG_RESULT([found (moduledir = $MODULEDIR)])
  33. else
  34. @@ -560,6 +562,8 @@ ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
  35. AM_CONDITIONAL(BUILD_STATIC, test "$enable_static" = "yes")
  36. +AC_SUBST(DIRECT_CFLAGS)
  37. +AC_SUBST(DIRECT_LIBS)
  38. AC_SUBST(FUSION_CFLAGS)
  39. AC_SUBST(FUSION_LIBS)
  40. AC_SUBST(LITE_CFLAGS)
  41. diff --git a/drivers/Makefile.am b/drivers/Makefile.am
  42. index 92b919e..2c71515 100644
  43. --- a/drivers/Makefile.am
  44. +++ b/drivers/Makefile.am
  45. @@ -28,21 +28,21 @@ drivers_LTLIBRARIES = \
  46. libfusionsound_oss_la_SOURCES = oss.c
  47. -libfusionsound_oss_la_LIBADD = ../src/libfusionsound.la
  48. +libfusionsound_oss_la_LIBADD = $(DIRECT_LIBS) ../src/libfusionsound.la
  49. libfusionsound_oss_la_LDFLAGS = -export-dynamic -avoid-version -module
  50. libfusionsound_alsa_la_SOURCES = alsa.c
  51. -libfusionsound_alsa_la_LIBADD = ../src/libfusionsound.la $(ALSA_LIBS)
  52. +libfusionsound_alsa_la_LIBADD = $(DIRECT_LIBS) ../src/libfusionsound.la $(ALSA_LIBS)
  53. libfusionsound_alsa_la_LDFLAGS = -export-dynamic -avoid-version -module
  54. libfusionsound_wave_la_SOURCES = wave.c
  55. -libfusionsound_wave_la_LIBADD = ../src/libfusionsound.la
  56. +libfusionsound_wave_la_LIBADD = $(DIRECT_LIBS) ../src/libfusionsound.la
  57. libfusionsound_wave_la_LDFLAGS = -export-dynamic -avoid-version -module
  58. diff --git a/interfaces/IFusionSoundMusicProvider/Makefile.am b/interfaces/IFusionSoundMusicProvider/Makefile.am
  59. index 55da3cc..901c340 100644
  60. --- a/interfaces/IFusionSoundMusicProvider/Makefile.am
  61. +++ b/interfaces/IFusionSoundMusicProvider/Makefile.am
  62. @@ -53,47 +53,49 @@ ifusionsoundmusicprovider_LTLIBRARIES = \
  63. libifusionsoundmusicprovider_timidity_la_SOURCES = ifusionsoundmusicprovider_timidity.c
  64. -libifusionsoundmusicprovider_timidity_la_LIBADD = $(TIMIDITY_LIBS)
  65. +libifusionsoundmusicprovider_timidity_la_LIBADD = $(DIRECT_LIBS) $(TIMIDITY_LIBS)
  66. libifusionsoundmusicprovider_timidity_la_LDFLAGS = -avoid-version -module
  67. libifusionsoundmusicprovider_wave_la_SOURCES = ifusionsoundmusicprovider_wave.c
  68. -libifusionsoundmusicprovider_wave_la_LIBADD =
  69. +libifusionsoundmusicprovider_wave_la_LIBADD = $(DIRECT_LIBS) $(top_builddir)/src/libfusionsound.la
  70. libifusionsoundmusicprovider_wave_la_LDFLAGS = -avoid-version -module
  71. libifusionsoundmusicprovider_vorbis_la_SOURCES = ifusionsoundmusicprovider_vorbis.c
  72. -libifusionsoundmusicprovider_vorbis_la_LIBADD = $(VORBISFILE_LIBS)
  73. +libifusionsoundmusicprovider_vorbis_la_LIBADD = $(DIRECT_LIBS) $(top_builddir)/src/libfusionsound.la $(VORBISFILE_LIBS)
  74. libifusionsoundmusicprovider_vorbis_la_LDFLAGS = -avoid-version -module
  75. libifusionsoundmusicprovider_mad_la_SOURCES = ifusionsoundmusicprovider_mad.c
  76. -libifusionsoundmusicprovider_mad_la_LIBADD = $(MAD_LIBS) -lm
  77. +libifusionsoundmusicprovider_mad_la_LIBADD = $(DIRECT_LIBS) $(MAD_LIBS) -lm
  78. libifusionsoundmusicprovider_mad_la_LDFLAGS = -avoid-version -module
  79. libifusionsoundmusicprovider_cdda_la_SOURCES = ifusionsoundmusicprovider_cdda.c
  80. -libifusionsoundmusicprovider_cdda_la_LIBADD = $(CDDB_LIBS)
  81. +libifusionsoundmusicprovider_cdda_la_LIBADD = $(DIRECT_LIBS) $(CDDB_LIBS)
  82. libifusionsoundmusicprovider_cdda_la_LDFLAGS = -avoid-version -module
  83. libifusionsoundmusicprovider_playlist_la_SOURCES = ifusionsoundmusicprovider_playlist.c
  84. +libifusionsoundmusicprovider_playlist_la_LIBADD = $(DIRECT_LIBS) $(top_builddir)/src/libfusionsound.la
  85. +
  86. libifusionsoundmusicprovider_playlist_la_LDFLAGS = -avoid-version -module
  87. libifusionsoundmusicprovider_ffmpeg_la_SOURCES = ifusionsoundmusicprovider_ffmpeg.c
  88. -libifusionsoundmusicprovider_ffmpeg_la_LIBADD = $(FFMPEG_LIBS)
  89. +libifusionsoundmusicprovider_ffmpeg_la_LIBADD = $(DIRECT_LIBS) $(top_builddir)/src/libfusionsound.la $(FFMPEG_LIBS)
  90. libifusionsoundmusicprovider_ffmpeg_la_LDFLAGS = -avoid-version -module