Hi folks,

Every time a new release comes out, I have to faff around to get it to build universal binaries on Mac OS X 10.4 ie. a binary which runs on PowerPC and Intel processor Macs. The following is what I do, is there any way that this process (with the exception of steps 1 and 4 obviously) could be incorporated into the Makefile please?

1. Run configure as follows:

CFLAGS="-O -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 - arch ppc" ./configure --disable-dependency-tracking --prefix=/usr/ local/clamXav

2. Edit clamav-config.h and change:
#define WORDS_BIGENDIAN whatever
to
#define WORDS_BIGENDIAN (defined(__BIG_ENDIAN__) && __BIG_ENDIAN__)

3. Edit libtool (the generated shell script) and change:
archive_cmds="\$nonopt \$(test \\\"x\$module\\\" = xyes && echo - bundle || echo -dynamiclib) \$allow_undefined_flag -o \$lib \$libobjs \$deplibs\$linker_flags -install_name \$rpath/\$soname \$verstring"

to:

archive_cmds="\$nonopt \$(test \\\"x\$module\\\" = xyes && echo - bundle || echo -dynamiclib) \$allow_undefined_flag -o \$lib \$libobjs \$deplibs -arch ppc -arch i386 -Wl,-syslibroot,/Developer/SDKs/ MacOSX10.4u.sdk \$linker_flags -install_name \$rpath/\$soname \ $verstring"

4. make


From what I can tell, the libtool stuff in particular is not passing through LDFLAGS.

Sadly I don't know enough to make this change myself and post a patch, so would be very grateful if someone else could find the time to do so please.

Many thanks,

Mark Allan
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html

Reply via email to