Source: fling Version: 1.1-2 Severity: important Tags: ftbfs patch fling fails to build from source on a number of 32bit architectures, because it links libraries in the wrong order. Nowadays, gcc defaults to -Wl,--as-needed. Since it passes -lm before the main object, -lm is discarded and the floor symbol remains unresolved. Simply reordering the flags makes fling build. Please consider applying the attached patch.
Helmut
--- fling-1.1.orig/Makefile +++ fling-1.1/Makefile @@ -1,4 +1,5 @@ -CFLAGS += -O2 -Wall -Wextra -pedantic -std=c99 -lm -lrt +CFLAGS += -O2 -Wall -Wextra -pedantic -std=c99 +LIBS += -lm -lrt CC ?= gcc INSTALL ?= install DESTDIR ?= @@ -7,7 +8,7 @@ bindir = $(exec_prefix)/bin fling: fling.c - $(CC) -o fling $(CFLAGS) fling.c + $(CC) -o fling $(CFLAGS) fling.c $(LIBS) clean: rm -f fling