#15451: cairo +universal doesn't build since 1.6.4 --------------------------------------+------------------------------------- Reporter: ryandesign@macports.org | Owner: ryandesign@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: --------------------------------------+------------------------------------- Comment (by hvdwolf@gmail.com): Hi Ryan, When I manually build Cairo, I set CFLAGS, CXXFLAGS, LDFLAGS and PKG_CONFIG_PATH, the way you do (more or less) in the Portfile. I also need to set the .configure argument CC="gcc -arch ${arch}". Then it works manually. However, when I patch the Portfile of cairo (see below), it still doesn't work (or is that my clumsy patch?). Harry configure { foreach arch ${my_universal_archs} { set my_arch_flag "-arch ${arch}" set my_cflags "${configure.cflags} -isysroot ${sysroot} ${my_arch_flag}" set my_ldflags "${configure.ldflags} ${my_arch_flag}" set extra_configure.args "CC=\"gcc -arch ${arch}\"" system "cd ${workpath}/${arch} && CFLAGS=\"${my_cflags}\" CXXFLAGS=\"${my_cflags}\" LDFLAGS=\"${my_ldflags}\" ${configure.cmd} ${configure.pre_args} ${configure.args} ${extra_configure.args}" } -- Ticket URL: <http://trac.macports.org/ticket/15451#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS