bug or feature: libd3dx9.cross.a

Misha Koshelev misha680 at gmail.com
Wed Jul 7 09:23:25 CDT 2010

Dear All:

I have run into another slight issue and, as this may affect others, was
wondering whether or not I am 
(i) doing something wrong or
(ii) this is something that should be corrected (in that case I am happy
to submit a patch but need a bit of guidance as to where this could be
fixed as I could not immediately find it).

Specifically, if I do, from the main Wine source directory:
cd dlls/d3dx9_36/
make clean; make

I get all files _except_ libd3dx9.cross.a, resulting in a dangling
symlink in the dlls directory and a mysterious failure when doing:
cd dlls/d3dx9_36/tests
rm *.exe; make crosstest

../../../tools/winegcc/winegcc -b i586-mingw32msvc
-B../../../tools/winebuild --sysroot=../../.. --lib-suffix=.cross.a
asm.cross.o core.cross.o effect.cross.o line.cross.o math.cross.o
mesh.cross.o shader.cross.o surface.cross.o rsrc.res testlist.cross.o -o
d3dx9_36_crosstest.exe -ld3dx9 -ld3d9 -luser32 -lgdi32 -lkernel32
/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/bin/ld: cannot find -ld3dx9
collect2: ld returned 1 exit status
winegcc: i586-mingw32msvc-gcc failed
make: *** [d3dx9_36_crosstest.exe] Error 2

However, if I simply do
cd dlls/d3dx9_36/
make libd3dx9.cross.a

All is well.

Is this a bug or feature? It seems un-user friendly for new developers
trying to add functions to DLLs.

Any good way to fix?


More information about the wine-devel mailing list