LFS
From Wine-Wiki
LFS (Linux from Scratch)
x86_64
Mar 06 a user with a Linux from Scratch (LFS) installation by a x86_64 multilib LFS. [...] This is the way I usually compile wine (GCC 3.4.4):
- ./configure --prefix=/opt/wine-CVS20060307 \
- --x-libraries=/usr/X11R6/lib &&
- make depend && make && su -c "make install"
Troubleshooting LFS x86_64 and Wine
A user had problems with some games and wondered if this was connected with his x86_64 setup. However W. Sipple noted: Wine continues to compile and install even if some of the DLLs won't compile. I had this a few times in the past, and ended up with a basically working Wine install that missed a few DLLs, mostly OpenGL-related stuff. Maybe something like that happens to you? Just check that all DLLs are built and in place, and make sure there were no errors during compile (like I said, with some DLLs, Wine just continues to build even though errors appear)...
J. Green: See this wiki page for an example of what your include/config.h file should probably look like:

