misc/habak-0.2.4.1 fails with --as-needed
<snip>
[...]
gcc -mtune=i686 -O2 -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs
-I/usr/X
11R6/include -Wall -c habak.c -o habak.o
habak.c: In function 'main':
habak.c:564: warning: suggest parentheses around assignment used as truth value
gcc -Wl,--as-needed -L/usr/X11R6/lib -lImlib2 -lm -o habak xcore.o random.o
haba
k.o
xcore.o: In function `initXconnection':
xcore.c:(.text+0x26): undefined reference to `XOpenDisplay'
xcore.c:(.text+0x6b): undefined reference to `imlib_context_set_display'
xcore.c:(.text+0x8f): undefined reference to `imlib_context_set_visual'
xcore.c:(.text+0xd3): undefined reference to `XCreatePixmap'
[...]
habak.c:(.text+0x1187): undefined reference to `imlib_context_set_image'
habak.c:(.text+0x1193): undefined reference to `imlib_image_set_has_alpha'
habak.c:(.text+0x11bd): undefined reference to `imlib_context_set_color'
habak.c:(.text+0x1201): undefined reference to `imlib_image_draw_line'
collect2: ld returned 1 exit status
make[1]: *** [habak] Error 1
make[1]: Leaving directory `/var/tmp/portage/habak-0.2.5/work/habak-0.2.5/src'
make: *** [all] Error 2
!!! ERROR: x11-misc/habak-0.2.5 failed.
Call stack:
ebuild.sh, line 1539: Called dyn_compile
ebuild.sh, line 939: Called src_compile
habak-0.2.5.ebuild, line 17: Called die
</snip>