X-Git-Url: https://git.cworth.org/git?p=gzip;a=blobdiff_plain;f=debian%2Frules;fp=debian%2Frules;h=a6d19bf327526f370c46fe05fd63b3409d4b3d16;hp=931925b2451278f3f55bac8632c5fd6376f8635f;hb=0769cf77a953ca3d393b569e13a0c503f9fe7e44;hpb=e7aafc2862026ac38e79c3ee0c5c39ef377ad3be diff --git a/debian/rules b/debian/rules index 931925b..a6d19bf 100755 --- a/debian/rules +++ b/debian/rules @@ -11,7 +11,12 @@ ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) CONFARGS = --host=$(DEB_HOST_GNU_TYPE) endif +buildarch := $(shell dpkg-architecture -qDEB_BUILD_ARCH) +ifeq ($(buildarch),amd64) +CFLAGS="-g -O2 -Wall -DUNALIGNED_OK" +else CFLAGS="-g -O2 -Wall" +endif configure: configure-stamp configure-stamp: