Statically linking and figuring out the build system

Reepca Russelstein <[email protected]>
Newsgroups gmane.comp.video.mesa3d.user
Message-ID <CA+jmvS5Sdzg3AKgo3eEehit_ZVx2GXE0-2ZCC=+nLCURqG9zOQ@mail.gmail.com>
Normally I'd just ask the direct question, but I get the feeling I'm a
bit out of my depth here, so I'll just explain completely what I'm
trying to do.

I want to compile llvmpipe and get a nice, shiny, libGL.so that I can
toss on another machine I have little control over (can't install
stuff to it) and have it work like a charm. So I checked out the
latest mesa, ran ./autogen.sh (after making sure I had all the
requirements installed), ran ./configure, ran "make linux-llvm" like
the instructions said, and got the message

make: *** No rule to make target 'llvm-linux'.  Stop.

so that was weird. I tried using scons, and the instructions worked
there. I verified that it worked on my system using LD_LIBRARY_PATH
and glxinfo, then chucked it onto the other system to test, at which
point it complained about being unable to find necessary libraries.

So I did a lot of mostly-fruitless searching trying to find out how to
get a statically-linked build of llvmpipe. I stumbled on the
--enable-static flag for the automake-based build system, but using
just --enable-static=yes caused ./configure to complain about DRI
being unable to be built as a static library, so I tried

./configure --enable-static=yes --enable-shared=DRI

which also failed with the same error. I very much don't want to dive
into reading through makefiles and such, so I'd like your help in
figuring out:

- How to get a statically-linked libGL.so when building with scons
- How to get a statically-linked libGL.so when building with make
- How to build llvmpipe with make
- Most importantly, where can I find up-to-date information about this
stuff if not at mesa3d.org?

Thanks.
_______________________________________________
mesa-users mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.