shut musl know-it-all up
[alioth/jupp.git] / debian / rules
index 8b915f8..3b1290c 100755 (executable)
@@ -173,6 +173,7 @@ EXTRA_CFLAGS+=              -Os
 ifeq (0,${USE_SHARED})
 EXTRA_LDFLAGS+=                -static
 endif
+CONFIGURE_ENV+=                ac_cv_header_sys_termios_h=no
 endif
 
 ifeq (${USE_LIBC},system)
@@ -268,7 +269,7 @@ debian/.configure_stamp: debian/.control_stamp
                cp /usr/share/misc/$$x .; \
        done
        mkdir builddir
-       cd builddir && exec env \
+       cd builddir && exec env ${CONFIGURE_ENV} \
            $(foreach i,CC CFLAGS CPPFLAGS LDFLAGS,$(call shellexport,$i)) \
            sh ../configure ${CONFIGURE_ARGS}
        @:>$@
@@ -298,6 +299,7 @@ debian/.control_stamp:
        : retry the build, after regenerating debian/control
        : with cp debian/.gencontrol_stamp debian/control
        diff -Nu debian/control debian/.gencontrol_stamp
+       : you made it, no worries
        @:>$@
 
 build: build-arch build-indep