kmod/autogen.sh

26 lines
682 B
Bash
Raw Normal View History

2011-11-21 21:35:15 +07:00
#!/bin/sh -e
autoreconf --install --symlink
2011-11-24 22:29:28 +07:00
MYCFLAGS="-g -Wall -Wextra \
2011-11-21 21:35:15 +07:00
-Wmissing-declarations -Wmissing-prototypes \
-Wnested-externs -Wpointer-arith \
-Wpointer-arith -Wsign-compare -Wchar-subscripts \
-Wstrict-prototypes -Wshadow \
2011-11-24 22:29:28 +07:00
-Wformat-security -Wtype-limits \
-Wformat=2 -Wuninitialized -Winit-self -Wundef \
-Wmissing-include-dirs -Wold-style-definition \
-Wfloat-equal -Wredundant-decls -Wendif-labels \
-Wcast-align -Wstrict-aliasing -Wwrite-strings \
-Wno-unused-parameter"
2011-11-21 21:35:15 +07:00
libdir() {
echo $(cd $1/$(gcc -print-multi-os-directory); pwd)
}
args="--prefix=/usr \
--sysconfdir=/etc \
--libdir=$(libdir /usr/lib)"
./configure $args CFLAGS="${MYCFLAGS} ${CFLAGS}" $@