It fails regardless. This is the result with "./configure --x-libraries=/emul/linux/x86/usr/lib/ LDFLAGS="-L/emul/linux/x86/usr/lib -L/emul/linux/x86/lib"" (Gentoo Linux X64) Code: make[1]: Entering directory `/wine-git/dlls/oleaut32/tests' ../../../tools/winegcc/winegcc -m32 -B../../../tools/winebuild --sysroot=../../.. -fasynchronous-unwind-tables dispatch.o olefont.o olepicture.o safearray.o tmarshal.o typelib.o usrmarshal.o varformat.o vartest.o vartype.o test_reg_i.o tmarshal_i.o tmarshal.res testlist.o -o oleaut32_test.exe.so ../../../libs/port/libwine_port.a -loleaut32 -lole32 -lrpcrt4 -luser32 -lgdi32 -ladvapi32 -L/emul/linux/x86/usr/lib -L/emul/linux/x86/lib make[1]: Entering directory `/wine-git/dlls/olecli32' gcc -m32 -c -I. -I. -I../../include -I../../include -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wstrict-prototypes -Wtype-limits -Wwrite-strings -fno-omit-frame-pointer -Wpointer-arith -Wlogical-op -I/usr/include/freetype2 -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -o olecli_main.o olecli_main.c make[1]: Entering directory `/wine-git/dlls/oledb32' gcc -m32 -c -I. -I. -I../../include -I../../include -D__WINESRC__ -DCOM_NO_WINDOWS_H -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wstrict-prototypes -Wtype-limits -Wwrite-strings -fno-omit-frame-pointer -Wpointer-arith -Wlogical-op -I/usr/include/freetype2 -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -o convert.o convert.c make[1]: Entering directory `/wine-git/dlls/oledb32/tests' gcc -m32 -c -I. -I. -I../../../include -I../../../include -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wstrict-prototypes -Wtype-limits -Wwrite-strings -fno-omit-frame-pointer -Wpointer-arith -Wlogical-op -I/usr/include/freetype2 -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -o convert.o convert.c make[1]: Entering directory `/wine-git/dlls/oleaut32' ../../tools/winegcc/winegcc -m32 -B../../tools/winebuild --sysroot=../.. -fasynchronous-unwind-tables -shared ./oleaut32.spec connpt.o dispatch.o hash.o oleaut.o olefont.o olepicture.o olepropframe.o recinfo.o safearray.o tmarshal.o typelib.o typelib2.o usrmarshal.o varformat.o variant.o vartype.o oleaut32_oaidl_p.o oleaut32_ocidl_p.o oleaut32_oaidl_r.res oleaut32_ocidl_r.res oleaut32.res dlldata.o -o oleaut32.dll.so -lcomctl32 -lurlmon -lwindowscodecs -luuid -lole32 -lrpcrt4 -luser32 -lgdi32 -ladvapi32 -Wb,-dcomctl32 -Wb,-durlmon -Wb,-dwindowscodecs ../../libs/port/libwine_port.a -L/emul/linux/x86/usr/lib -L/emul/linux/x86/lib winebuild: oleaut32_ocidl_p.o is an empty file winegcc: ../../tools/winebuild/winebuild failed make[1]: *** [oleaut32.dll.so] Error 2 make[1]: Leaving directory `/wine-git/dlls/oleaut32' make: *** [dlls/oleaut32] Error 2 make: *** Waiting for unfinished jobs.... gcc -m32 -c -I. -I. -I../../../include -I../../../include -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wstrict-prototypes -Wtype-limits -Wwrite-strings -fno-omit-frame-pointer -Wpointer-arith -Wlogical-op -I/usr/include/freetype2 -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -o marshal.o marshal.c winebuild: vartest.o is an empty file winegcc: ../../../tools/winebuild/winebuild failed make[1]: *** [oleaut32_test.exe.so] Error 2 make[1]: Leaving directory `/wine-git/dlls/oleaut32/tests' make: *** [dlls/oleaut32/tests] Error 2 ../../../tools/widl/widl -I. -I. -I../../../include -I../../../include -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -u -o convert_i.c convert.idl ../../../tools/make_ctests -o testlist.c convert.c marshal.c gcc -m32 -c -I. -I. -I../../../include -I../../../include -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wstrict-prototypes -Wtype-limits -Wwrite-strings -fno-omit-frame-pointer -Wpointer-arith -Wlogical-op -I/usr/include/freetype2 -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -o convert_i.o convert_i.c ../../tools/winegcc/winegcc -m32 -B../../tools/winebuild --sysroot=../.. -fasynchronous-unwind-tables -shared ./olecli32.spec olecli_main.o -o olecli32.dll.so -lole32 -lgdi32 ../../libs/port/libwine_port.a -L/emul/linux/x86/usr/lib -L/emul/linux/x86/lib ../../tools/winegcc/winegcc -m32 -B../../tools/winebuild --sysroot=../.. -fasynchronous-unwind-tables -shared ./olecli32.spec olecli_main.o -o olecli32.dll.fake -lole32 -lgdi32 ../../libs/port/libwine_port.a -L/emul/linux/x86/usr/lib -L/emul/linux/x86/lib make[1]: Leaving directory `/wine-git/dlls/olecli32' gcc -m32 -c -I. -I. -I../../../include -I../../../include -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wstrict-prototypes -Wtype-limits -Wwrite-strings -fno-omit-frame-pointer -Wpointer-arith -Wlogical-op -I/usr/include/freetype2 -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -o testlist.o testlist.c gcc -m32 -c -I. -I. -I../../include -I../../include -D__WINESRC__ -DCOM_NO_WINDOWS_H -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wstrict-prototypes -Wtype-limits -Wwrite-strings -fno-omit-frame-pointer -Wpointer-arith -Wlogical-op -I/usr/include/freetype2 -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -o main.o main.c ../../tools/widl/widl -I. -I. -I../../include -I../../include -D__WINESRC__ -DCOM_NO_WINDOWS_H -u -o convert_i.c convert.idl ../../tools/widl/widl -I. -I. -I../../include -I../../include -D__WINESRC__ -DCOM_NO_WINDOWS_H -r -o oledb32_classes_r.res oledb32_classes.idl gcc -m32 -c -I. -I. -I../../include -I../../include -D__WINESRC__ -DCOM_NO_WINDOWS_H -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wstrict-prototypes -Wtype-limits -Wwrite-strings -fno-omit-frame-pointer -Wpointer-arith -Wlogical-op -I/usr/include/freetype2 -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -o convert_i.o convert_i.c ../../tools/winegcc/winegcc -m32 -B../../tools/winebuild --sysroot=../.. -fasynchronous-unwind-tables -shared ./oledb32.spec convert.o main.o convert_i.o oledb32_classes_r.res -o oledb32.dll.so -luuid -loleaut32 -lole32 -luser32 -ladvapi32 ../../libs/port/libwine_port.a -L/emul/linux/x86/usr/lib -L/emul/linux/x86/lib ../../tools/winegcc/winegcc -m32 -B../../tools/winebuild --sysroot=../.. -fasynchronous-unwind-tables -shared ./oledb32.spec convert.o main.o convert_i.o oledb32_classes_r.res -o oledb32.dll.fake -luuid -loleaut32 -lole32 -luser32 -ladvapi32 ../../libs/port/libwine_port.a -L/emul/linux/x86/usr/lib -L/emul/linux/x86/lib make[1]: Leaving directory `/wine-git/dlls/oledb32' ../../../tools/winegcc/winegcc -m32 -B../../../tools/winebuild --sysroot=../../.. -fasynchronous-unwind-tables convert.o marshal.o convert_i.o testlist.o -o oledb32_test.exe.so ../../../libs/port/libwine_port.a -loleaut32 -lole32 -luser32 -lgdi32 -ladvapi32 -L/emul/linux/x86/usr/lib -L/emul/linux/x86/lib ../../../tools/winegcc/winegcc -m32 -B../../../tools/winebuild --sysroot=../../.. -fasynchronous-unwind-tables -s -Wb,-F,oledb32_test.exe convert.o marshal.o convert_i.o testlist.o -o oledb32_test-stripped.exe.so ../../../libs/port/libwine_port.a -loleaut32 -lole32 -luser32 -lgdi32 -ladvapi32 -L/emul/linux/x86/usr/lib -L/emul/linux/x86/lib echo "oledb32_test.exe TESTRES \"oledb32_test-stripped.exe.so\"" | LD_LIBRARY_PATH="../../../libs/wine:$LD_LIBRARY_PATH" ../../../tools/wrc/wrc --nostdinc --po-dir=../../../po -m32 -I. -I. -I../../../include -I../../../include -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -o ../../../programs/winetest/oledb32_test.res make[1]: Leaving directory `/wine-git/dlls/oledb32/tests'