yes… I know.
and I know that SDL needs a lot of other .so
that is the problem: I don’t know how to statically compile all of them.
I should list on the compile line all the -Xlib --phtheads -lalsa
-lframebuffer blablabla
I was looking for a simpler way.
The goal was to (g)profile my game.
gprof can’t profile shared library: so I need a static application.
Now I’m looking if is there another better profiler (under linux).
Tnx
MarioOn 10/19/07, cocobear <cocobear.cn at gmail.com> wrote:
short and simply question: which is the correct way to statically
compile libsd inside my application under Linux?
I don’t think it’s a good idea, SDL library still needs other, will you
complie this libraries in your application.
I could not statically compile the last libraries (X11, dl, etc.), I
had to left them as dynamic. You may need less libraries if you’re
using your own SDL (with fewer backends enabled).
I think --static-libs should include that, alas this is not the case.On Fri, Oct 19, 2007 at 12:32:50PM +0200, mario wrote:
short and simply question: which is the correct way to statically
compile libsd inside my application under Linux?
I don’t think it’s a good idea, SDL library still needs other, will you
complie this libraries in your application.
yes… I know.
and I know that SDL needs a lot of other .so
that is the problem: I don’t know how to statically compile all of them.
I should list on the compile line all the -Xlib --phtheads -lalsa
-lframebuffer blablabla
I was looking for a simpler way.
The goal was to (g)profile my game.
gprof can’t profile shared library: so I need a static application.
Now I’m looking if is there another better profiler (under linux).
Tnx