#!/usr/bin/make -f include /usr/share/dpkg/architecture.mk export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic # src/common/dmath.c picks doubles apart through a union and # PK_ENABLE_DETERMINISM promises bit-identical results everywhere. The x87 FPU # keeps intermediates in 80-bit registers and double-rounds when it spills them # so tests/704_math.py, tests/800_color32.py and tests/930_deterministic_float.py # diverge by an ulp on i386. Compile with SSE2 arithmetic there so the results # match every other architecture. ifeq ($(DEB_HOST_ARCH),i386) export DEB_CFLAGS_MAINT_APPEND += -msse2 -mfpmath=sse endif %: dh $@ override_dh_auto_configure: dh_auto_configure -- -DPK_BUILD_SHARED_LIB=ON