Subject: Re: Fwd: math/py-Numeric won't build on macosx
To: Ronald van der Pol <>
From: Hiramatsu Yoshifumi <>
List: tech-pkg
Date: 11/28/2004 02:20:43
At Fri, 26 Nov 2004 23:21:21 +0100,
Ronald van der Pol <> wrote:
> I reinstalled python23-pth after applying your patch. py-Numeric compiles
> fine now. Why does stripping make a difference?

When linking dlls(, for instance), following command is executed.

gcc -L/usr/lib -L/Volumes/pkgsrc/pkg/lib -bundle -bundle_loader /Volumes/pkgsrc/pkg/bin/python2p3 -L/usr/lib -L/Volumes/pkgsrc/pkg/lib/python2p3/config -L/Volumes/pkgsrc/pkg/lib -O2 -I/usr/include -I/Volumes/pkgsrc/pkg/include/python2p3 -no-cpp-precomp -I/usr/include -I/Volumes/pkgsrc/pkg/include/python2p3 build/temp.darwin-7.6.0-Power_Macintosh-2p3/Src/umathmodule.o -lm -o build/lib.darwin-7.6.0-Power_Macintosh-2p3/ -L/usr/lib -L/Volumes/pkgsrc/pkg/lib/python2p3/config -L/Volumes/pkgsrc/pkg/lib

And when -bundle_loader [path to executable] option is used, the executable file needs to have symbol table.

If you are interedted, please see
and ld(1) to get information about the purpose of -bundle_loader.

// Hiramatsu Yoshifumi