Created attachment 86612 [details]
Patch to select right values at compile time rather than configure time
I had trouble building fontconfig-2.10.95 as a universal library on MacOSX.
For completeness, my environment has
CFLAGS=-O3 -g -arch i386 -arch x86_64 -isystem /opt/foo/include
CXXFLAGS=-O3 -g -arch i386 -arch x86_64 -isystem /opt/foo/include
OBJCFLAGS=-arch i386 -arch x86_64
and the command I use is
./configure --prefix=/opt/foo --disable-dependency-tracking --with-add-fonts=/Library/Fonts,~/Library/Fonts
In file included from fcint.h:29,
../config.h:8:1: warning: "ALIGNOF_DOUBLE" redefined
In file included from ../config.h:365,
../config-fixups.h:38:1: warning: this is the location of the previous definition
Happily, the macports and homebrew folks had a patch ready for this issue; see the script at
I'll attach the patch. It's 13 lines, and just defines SIZEOF_VOID_P and
Well, that fix looks not correct. the problem is, it reads config.h twice because, as the error log says config-fixups.h contains the same definition already and it is supposed to be read at the end of config.h.
let me try to fix that anyway
Okay, git master should works.