tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Patch for graphics/lcms2 (alignment issues on sparc)



> Date: Sat, 31 Oct 2026 14:24:04 -0400
> From: vom513 <vom513%gmail.com@localhost>
> 
> +# lcms2's suballocator defaults to sizeof(void *) alignment; 32-bit SPARC
> +# needs 8 for doubles (Ghostscript's bundled lcms2mt already does this).
> +.if ${MACHINE_ARCH} == "sparc"
> +CPPFLAGS+=	-DCMS_PTR_ALIGNMENT=8

Maybe this should be alignof(max_align_t) instead?  I expect this
affects more than just sparc32.


Home | Main Index | Thread Index | Old Index