Skip to content

Fix: undefined reference to symbol 'XauGetBestAuthByAddr' when link against static version of libxcb

Roy Qu requested to merge royqh1979/libxcb:master into master

While trying to statically link a qt app against libxcb using qmake, I got the following error:

/usr/bin/ld: /usr/local/lib/libxcb.a(xcb_auth.o): undefined reference to symbol 'XauGetBestAuthByAddr'
/usr/bin/ld: //lib/x86_64-linux-gnu/ error adding symbols: DSO missing from command line

This patch fixes it.

Edited by Roy Qu

Merge request reports