Created attachment 360320 [details, diff] Correct linking for static builds. When neon is linked statically the library order is incorrect as pkg-config serves up the libraries from the PC file in order. Patch attached that reverses the order correctly.
Could you report this problem to upstream?
I did a while ago and didn't hear anything back. I just tried again and the mailing list site isn't working now.
Fixed by upstream in neon 0.30.1. trunk: r1943, 2014-09-20 19:09:19 UTC 0.30.x branch: r1945, 2014-09-20 19:21:43 UTC