linux-sunxi / sunxi-mali

Sunxi Mali-400 support libraries.
56 stars 71 forks source link

lib:ump: Add -ldri2 to LDFLAGS only if xorg version less than 1.13.0. #4

Closed reinforce closed 11 years ago

reinforce commented 11 years ago

Starting from xorg-server 1.12.99.901 DRI2 is moved from external module to built-in

libv commented 11 years ago

Nope. libdri2 is clientside, and it is definitely not part of the xserver.

We need this dependency, not for ourselves, but for libMali.so. We have a few broken version around which do not depend on the proper libraries, namely X11, dri2 and drm.

It would interest me to know how you came to your conclusion about the xserver. Are you using a libMali.so which does properly depend on the right libs? Are your xlibs properly depending on libdri2? What was the error you got that triggered your action?

reinforce commented 11 years ago

Oh. I see now. Sorry for this stupidity. My misunderstanding.

libv commented 11 years ago

Well, it is a broken situation, and things are better when we are using the r3p2-1 binaries.

I have, in the meantime, created a fully packaged libump separate repo, and there the extra LD includes are dropped. This leaves sunxi-mali in a pretty precarious situation, but that's for the future and not related to this.