vapier 14/08/13 03:59:48 Added: acct-6.6.1-math.patch Log: Link with -lm when needed #519552 by René Rhéaume. (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
Revision Changes Path 1.1 sys-process/acct/files/acct-6.6.1-math.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/acct/files/acct-6.6.1-math.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/acct/files/acct-6.6.1-math.patch?rev=1.1&content-type=text/plain Index: acct-6.6.1-math.patch =================================================================== https://savannah.gnu.org/bugs/?42973 https://bugs.gentoo.org/519552 these files use frexp/ldexp which is in -lm --- a/Makefile.am +++ b/Makefile.am @@ -26,6 +26,7 @@ accton_SOURCES = accton.c common.c dump_acct_SOURCES = dump-acct.c common.c file_rd.c \ pacct_rd.c +dump_acct_LDADD = $(LDADD) -lm dump_utmp_SOURCES = dump-utmp.c common.c file_rd.c \ utmp_rd.c @@ -37,9 +38,11 @@ last_SOURCES = last.c common.c file_rd.c hashtab.c \ lastcomm_SOURCES = lastcomm.c common.c dev_hash.c file_rd.c \ hashtab.c pacct_rd.c uid_hash.c +sa_LDADD = $(LDADD) -lm sa_SOURCES = sa.c common.c file_rd.c hashtab.c \ pacct_rd.c uid_hash.c +sa_LDADD = $(LDADD) -lm noinst_HEADERS = common.h config.h dev_hash.h file_rd.h hashtab.h \ pacct_rd.h uid_hash.h utmp_rd.h al_share.cpp linux-acct.h