Pass --as-needed to ld
Apollon Oikonomopoulos
10 years ago
3 | 3 | |
4 | 4 | DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) |
5 | 5 | |
6 | CONFIGURE_OPTS = --ghc-options="-optl -Wl,-z,relro" | |
6 | CONFIGURE_OPTS = --ghc-options="-optl -Wl,-z,relro -optl -Wl,--as-needed" | |
7 | 7 | |
8 | 8 | ifeq ($(DEB_HOST_ARCH_OS),linux) |
9 | 9 | CONFIGURE_OPTS += --flags="with_xft with_inotify with_iwlib with_mpris with_dbus" |