Fix underlinking (floor/ceil) due to missing -lm
Submitted by Justin
Link to original bug (#724104)
Description
Created attachment 268770 ld.gold patch
Using ld.gold several underlinking where detected. Please find attach a patch against current HEAD to fix this issue.
libtool: link: x86_64-pc-linux-gnu-gcc -O2 -pipe -ftracer -march=native -frecord-gcc-switches -g -Wimplicit-function-declaration -Wl,-O1 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -o .libs/glade-previewer glade_previewer-glade-previewer.o -Wl,--export-dynamic -pthread -Wl,--as-needed ./.libs/libgladeui-2.so -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lxml2 -pthread ./.libs/libgladeui-2.so: error: undefined reference to 'floor' ./.libs/libgladeui-2.so: error: undefined reference to 'ceil' collect2: error: ld returned 1 exit status Makefile:815: recipe for target 'glade-previewer' failed
Patch 268770, "ld.gold patch":
0001-Fix-underlinking-floor-ceil-detected-by-ld.gold.patch