]> git.ipfire.org Git - thirdparty/kmod.git/blob - autogen.sh
Fix "Dereference of null pointer" as reported by llvm
[thirdparty/kmod.git] / autogen.sh
1 #!/bin/sh -e
2
3 autoreconf --install --symlink
4
5 MYCFLAGS="-g -O2 -Werror"
6
7 libdir() {
8 echo $(cd $1/$(gcc -print-multi-os-directory); pwd)
9 }
10
11 args="--prefix=/usr \
12 --sysconfdir=/etc \
13 --libdir=$(libdir /usr/lib) \
14 --enable-debug"
15
16 if [ -z "$NOCONFIGURE" ]; then
17 exec ./configure $args CFLAGS="${MYCFLAGS} ${CFLAGS}" "$@"
18 fi