File: rules

package info (click to toggle)
uchardet 0.0.8-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 2,244 kB
  • sloc: cpp: 8,045; python: 1,305; ansic: 112; sh: 75; makefile: 9
file content (18 lines) | stat: -rwxr-xr-x 542 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f
include /usr/share/dpkg/architecture.mk

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

ifeq ($(DEB_HOST_ARCH_CPU),i386)
  # Uchardet seems to rely on IEEE 754 float rounding. Tell the build system to
  # use -ffloat-store to make testsuite pass and make i386 give consistent
  # results between architectures.
  # See https://bugs.freedesktop.org/show_bug.cgi?id=101033
  EXTRA_CMAKE_ARGS = -DTARGET_ARCHITECTURE=x86 -DCHECK_SSE2=OFF
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- $(EXTRA_CMAKE_ARGS)