On Thu, Oct 03, 2002 at 11:31:52PM +0200, Jan Gacnik wrote:
> Well, the default for MacOS X 10.1 and higher is the so called 
> "two-level namespace" and -undefined error. - All symbols have to be 
> present at link time. By using '-flat_namespace' and '-undefined 
> suppress' (or '-undefined warning') you can avoid that.

I finally got Crypto++ 5.0 to compile on the MacOS X 10.1 machine on 
the SourceForge compile farm, but I had to use all of these flags:

CXXFLAGS += -fno-coalesce-templates -fno-coalesce-static-vtables
LDFLAGS += -flat_namespace -undefined suppress -m

and remove the -fno-pic flag that's in the current makefile.

> But this is the line already included in config.h?!? I added 
> 'defined(__ppc__)', now it works!

Config.h had "defined(__PPC__)" which is needed for LinuxPPC. But
apparently both LinuxPPC and Darwin define __BIG_ENDIAN__, so I'm going to
remove both checks for __ppc__ and __PPC__ and check for __BIG_ENDIAN__
instead.

Reply via email to