| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | export DEB_SETUP_GHC_CONFIGURE_ARGS = --datasubdir=gtk2hs-buildtools |
| 4 | |
| 5 | # Build with -O0 on ppc64el to work-around a GHC bug |
| 6 | # see https://bugs.debian.org/942585 |
| 7 | # and https://gitlab.haskell.org/ghc/ghc/issues/17203 |
| 8 | ifneq (,$(filter $(DEB_BUILD_ARCH),ppc64el ppc64)) |
| 9 | export DEB_SETUP_GHC_CONFIGURE_ARGS += --ghc-options="-O0" |
| 10 | endif |
| 11 | |
| 12 | %: |
| 13 | dh $@ |