mirror of
https://github.com/AuxXxilium/kmod.git
synced 2024-12-28 06:15:20 +07:00
19 lines
323 B
Bash
Executable File
19 lines
323 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
autoreconf --install --symlink
|
|
|
|
MYCFLAGS="-g -O2 -Werror"
|
|
|
|
libdir() {
|
|
echo $(cd $1/$(gcc -print-multi-os-directory); pwd)
|
|
}
|
|
|
|
args="--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--libdir=$(libdir /usr/lib) \
|
|
--enable-debug"
|
|
|
|
if [ -z "$NOCONFIGURE" ]; then
|
|
exec ./configure $args CFLAGS="${MYCFLAGS} ${CFLAGS}" "$@"
|
|
fi
|