I ran into a similar problem here. You can do this:
pktanon_LDFLAGS = -Wl,--whole-archive,libpktanon.a,--no-whole-archive
The issue is that Libtool doesn't guarantee the order of linker flags on the actual command line it executes, so you have to force it like this.