Use correct dpkg-architecture variable to apply -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
Mario Limonciello
8 years ago
0 | 0 | #!/usr/bin/make -f |
1 | 1 | # -*- makefile -*- |
2 | 2 | |
3 | #GPGME needs this for proper building on i386, armhf, powerpc | |
4 | ifeq "$(DEB_BUILD_ARCH)" "i386" | |
5 | export DEB_CFLAGS_MAINT_APPEND = -D_FILE_OFFSET_BITS=64 | |
3 | #GPGME needs this for proper building on 32 bit archs | |
4 | ifeq "$(DEB_HOST_ARCH_BITS)" "32" | |
5 | export DEB_CFLAGS_MAINT_APPEND = -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE | |
6 | 6 | endif |
7 | ifeq "$(DEB_BUILD_ARCH)" "armhf" | |
8 | export DEB_CFLAGS_MAINT_APPEND = -D_FILE_OFFSET_BITS=64 | |
9 | endif | |
10 | ifeq "$(DEB_BUILD_ARCH)" "powerpc" | |
11 | export DEB_CFLAGS_MAINT_APPEND = -D_FILE_OFFSET_BITS=64 | |
12 | endif | |
13 | ||
14 | 7 | |
15 | 8 | export COLORHUG="--disable-colorhug" |
16 | 9 | COLORHUG_VERSION=$(shell dpkg-query -W libcolorhug-dev | awk '{ print $$2 }' | sed 's,-.*,,') |