projects
/
platform
/
upstream
/
kmod.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
build-sys: Set CFLAGS to "-O2 -Werror" in autogen.sh
[platform/upstream/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
15
if [ -z "$NOCONFIGURE" ]; then
16
exec ./configure $args CFLAGS="${MYCFLAGS} ${CFLAGS}" "$@"
17
fi