SDL_mixer IS being stripped!

I did a fresh cross-compile “make” of SDL_mixer, and noticed the culprit:

  strip .libs/SDL_mixer.dll

Blah! I guess I’ll need to hack the makefile or something.
(I didn’t see any obvious “./configure” --option relating to stripping
libraries)

-bill!

I did a fresh cross-compile “make” of SDL_mixer, and noticed the culprit:

  strip .libs/SDL_mixer.dll

Blah! I guess I’ll need to hack the makefile or something.

I did this. (ltconfig needed tweaking)

Guess what? Stripped, the DLL is like 152Kbytes.
Unstripped, it’s 1.6 FREAKING MEGABYTES!

Sam!! Help! What can we do!?

-bill!

“William Kendrick” wrote

Guess what? Stripped, the DLL is like 152Kbytes.
Unstripped, it’s 1.6 FREAKING MEGABYTES!

my MSVC produced SDL_mixer.dll is 156KB. This uses the
smpeg.dll for MP3 support. (smpeg.dll is 180KB)
anyways, the 1.6MB seems a little hefty, your stripped
version is about the “right” size.

hopefully this gives you something to shoot for.

I did a fresh cross-compile “make” of SDL_mixer, and noticed the culprit:

  strip .libs/SDL_mixer.dll

Blah! I guess I’ll need to hack the makefile or something.

I did this. (ltconfig needed tweaking)

Arg! I removed this at one point. I don’t know why it’s still in ltconfig.

Guess what? Stripped, the DLL is like 152Kbytes.
Unstripped, it’s 1.6 FREAKING MEGABYTES!

Sam!! Help! What can we do!?

Don’t strip, and don’t build with -g.

The next release of the SDL_mixer library will have the strip removed.
The real fix would be to go into the bfd library and find out what
magic is being changed, and either prevent it or write a small utility
to fix it.

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

my MSVC produced SDL_mixer.dll is 156KB. This uses the
smpeg.dll for MP3 support. (smpeg.dll is 180KB)
anyways, the 1.6MB seems a little hefty, your stripped
version is about the “right” size.

hopefully this gives you something to shoot for.

Hrm… I tried, and can’t cross-compile smpeg. It complains that
mmap isn’t available! I guess maybe it’s a linux version of smpeg library
that’s causing my cross-compiled SDL_mixer to barf on Win32 boxes?

-bill!

my MSVC produced SDL_mixer.dll is 156KB. This uses the
smpeg.dll for MP3 support. (smpeg.dll is 180KB)
anyways, the 1.6MB seems a little hefty, your stripped
version is about the “right” size.

hopefully this gives you something to shoot for.

Hrm… I tried, and can’t cross-compile smpeg. It complains that
mmap isn’t available! I guess maybe it’s a linux version of smpeg library
that’s causing my cross-compiled SDL_mixer to barf on Win32 boxes?

Grab the CVS SMPEG code, and use the cross-configure.sh and cross-make.sh
scripts from http://www.libsdl.org/Xmingw32/

The only reason you need the SMPEG CVS code is to hide the setenv() call
when building plaympeg on Win32.

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software