aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-extended/diffutils/diffutils_%.bbappend
blob: 8b54cb007e115ee3ecdc72422ec7f9a7847a7b7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
FILESEXTRAPATHS:prepend:mingw32 := "${THISDIR}/${BPN}:"

# Add some definitions for POSIX signals..
CFLAGS:append:mingw32 = " -DSIGALRM=14 -DSIGHUP=1 -DSIGQUIT=3 -DSIGPIPE=13 -DSIGTSTP=18 -DSIGSTOP=17 "

do_configure:prepend:mingw32 () {
    # Remove building of "man" and "gnulib-tests". The tests don't
    # cross-compile for mingw, but we aren't using them anyway
    sed -i \
        -e 's:^SUBDIRS =\(.*\) man\>:SUBDIRS = \1 :g' \
        -e 's:^SUBDIRS =\(.*\) gnulib-tests\>:SUBDIRS = \1 :g' \
        ${S}/Makefile.am
}