]> code.delx.au - spectrwm/commit
linux: Use --as-needed when linking
authorAndrea Bolognani <eof@kiyuko.org>
Tue, 5 Jul 2016 11:46:35 +0000 (13:46 +0200)
committerAndrea Bolognani <eof@kiyuko.org>
Tue, 5 Jul 2016 14:40:48 +0000 (16:40 +0200)
commitac945112ba4384fc68fea1e2ee387c5407b05bbb
tree9251bfc4397b8b2458e09bcae916979220a942ed
parent857820719e00f0c0b0a591eeb1ec600a389fe98d
linux: Use --as-needed when linking

Using this flag will cause the linker to ignore any libraries
that have been listed on the command line but whose symbols are
not actually used.

Right now, it just gets rid of the unnecessary linking against
xcb-render (see https://bugs.debian.org/829709), but it might
catch missing dependencies in the future, and it will generally
keep the resulting binaries nice and tidy.

Ubuntu and Arch are both using --as-needed by default already,
and other distributions will probably switch at some point.
linux/Makefile