Compiling X

While working my way throug the X instalation part of the BLFS I encountered some problems with compiling. The first problem was libXpm in the libriry chapter. It showed that several packages of the app chapter have the same problem.
The problem is something like this:
*.so: undefined reverence to ‚X….‘
this is cause by the missing library libXext. To circumvent this problem I did first the configure part and then took the offending Makefile and added ‚-lXext‘ right bevor ‚-lX11‘ in the variable LDFLAGS.