Package: libresample
Version: 0.1.3-3
Severity: normal
Tags: patch

Hi,

libresample fails to build from source when using binutils-gold [1,2].
The reason is that the tests don't directly link against libraries that
are used in the files. binutils-gold won't consider indirect library 
dependencies to resolve symbols in contrast to binutils.

Attached is a patch which fixes the problem.

Cheers,
  Stefan.

[1]:
<http://people.ubuntuwire.org/~lucas/ubuntu-nbs/32/libresample_0.1.3-3_lubuntu32.buildlog>
[2]:
<http://people.ubuntuwire.org/~lucas/ubuntu-nbs/64/libresample_0.1.3-3_lubuntu64.buildlog>

-- System Information:
Debian Release: squeeze/sid
  APT prefers natty-updates
  APT policy: (500, 'natty-updates'), (500, 'natty-security'), (500, 'natty')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.37-8-generic (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Index: libresample-0.1.3/tests/CMakeLists.txt
===================================================================
--- libresample-0.1.3.orig/tests/CMakeLists.txt	2010-12-13 00:24:51.268774001 +0100
+++ libresample-0.1.3/tests/CMakeLists.txt	2010-12-13 00:26:01.528774001 +0100
@@ -11,14 +11,14 @@
 
 if(SNDFILE_FOUND)
    add_executable(resample-sndfile resample-sndfile.c)
-   target_link_libraries(resample-sndfile resample m)
+   target_link_libraries(resample-sndfile resample sndfile m)
    set_target_properties(resample-sndfile PROPERTIES COMPILE_FLAGS "${SNDFILE_CFLAGS}" LINK_FLAGS "${SNDFILE_LDFLAGS}")
    install(TARGETS resample-sndfile RUNTIME DESTINATION bin)
 endif(SNDFILE_FOUND)
 
 if(SAMPLERATE_FOUND)
    add_executable(compareresample compareresample.c)
-   target_link_libraries(compareresample resample-static m)
+   target_link_libraries(compareresample resample-static samplerate m)
    set_target_properties(compareresample PROPERTIES COMPILE_FLAGS "${SAMPLERATE_CFLAGS}" LINK_FLAGS "${SAMPLERATE_LDFLAGS}")
    add_test(compareresample compareresample DEPENDS resample)
 endif(SAMPLERATE_FOUND)

Reply via email to