Package: fio Version: 1.50-1 Severity: normal Tags: patch User: [email protected] Usertags: ld-as-needed
The package fails to build when --as-needed linker option is enabled, because of incorrect order of parameters passed to ld. Here's a log of failed build in Ubuntu: https://launchpadlibrarian.net/70832832/buildlog_ubuntu-oneiric-i386.fio_1.50-1_FAILEDTOBUILD.txt.gz See also http://wiki.debian.org/ToolChain/DSOLinking#Only_link_with_needed_libraries The attached patch was used in Ubuntu to fix the problem. https://launchpad.net/ubuntu/+source/fio/1.50-1ubuntu1 -- System Information: Debian Release: wheezy/sid APT prefers oneiric APT policy: (500, 'oneiric') Architecture: i386 (i686) Kernel: Linux 2.6.38-10-generic (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash
Description: Place object before libraries to fix linking FTBFS. Author: Ilya Barygin <[email protected]> --- fio-1.50.orig/Makefile +++ fio-1.50/Makefile @@ -66,7 +66,7 @@ mandir = $(prefix)/share/man $(QUIET_CC)$(CC) -o $@ -c $(CFLAGS) $(CPPFLAGS) $< fio: $(OBJS) - $(QUIET_CC)$(CC) $(CFLAGS) -o $@ $(LIBS) $(OBJS) + $(QUIET_CC)$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) depend: $(QUIET_DEP)$(CC) -MM $(CFLAGS) $(CPPFLAGS) $(SOURCE) 1> .depend

