chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
514b8d6
)
autogen.sh: make "CFLAGS=-O0 ./autogen.sh" working
author
Kay Sievers
<kay.sievers@vrfy.org>
Tue, 16 Jun 2009 19:29:13 +0000
(21:29 +0200)
committer
Kay Sievers
<kay.sievers@vrfy.org>
Tue, 16 Jun 2009 19:29:13 +0000
(21:29 +0200)
TODO
patch
|
blob
|
history
autogen.sh
patch
|
blob
|
history
diff --git
a/TODO
b/TODO
index d1ae2d7ae37e1ae1f7ed4830ecd612635a49d6af..e3631837cb5a459fa3b42fdcce6245af63328f1f 100644
(file)
--- a/
TODO
+++ b/
TODO
@@
-1,4
+1,3
@@
- o CFLAGS debug
o cleanup old extras which link libudev source directly
o fix configure options and libdir-name, exec-prefix, udev-prefix, libdir, ...
o cleanup old extras which link libudev source directly
o fix configure options and libdir-name, exec-prefix, udev-prefix, libdir, ...
diff --git
a/autogen.sh
b/autogen.sh
index 63c1997736e2715924c4b01b814ebe9615b2c65a..5c5903e0eb2c3e50f0163215f3829edd1119fc41 100755
(executable)
--- a/
autogen.sh
+++ b/
autogen.sh
@@
-3,17
+3,25
@@
gtkdocize
autoreconf --install --symlink
gtkdocize
autoreconf --install --symlink
-CFLAGS="-g -Wall \
+
MY
CFLAGS="-g -Wall \
-Wmissing-declarations -Wmissing-prototypes \
-Wnested-externs -Wpointer-arith \
-Wpointer-arith -Wsign-compare -Wchar-subscripts \
-Wstrict-prototypes -Wshadow \
-Wformat=2 -Wtype-limits"
-Wmissing-declarations -Wmissing-prototypes \
-Wnested-externs -Wpointer-arith \
-Wpointer-arith -Wsign-compare -Wchar-subscripts \
-Wstrict-prototypes -Wshadow \
-Wformat=2 -Wtype-limits"
+case "$CFLAGS" in
+ *-O[0-9]*)
+ ;;
+ *)
+ MYCFLAGS="$MYCFLAGS -O2"
+ ;;
+esac
+
libdirname=$(basename $(cd /lib/$(gcc -print-multi-os-directory); pwd))
args="--prefix=/usr --exec-prefix= --sysconfdir=/etc \
--libdir=/usr/$libdirname --with-libdir-name=$libdirname \
--with-selinux --enable-gtk-doc"
libdirname=$(basename $(cd /lib/$(gcc -print-multi-os-directory); pwd))
args="--prefix=/usr --exec-prefix= --sysconfdir=/etc \
--libdir=/usr/$libdirname --with-libdir-name=$libdirname \
--with-selinux --enable-gtk-doc"
-export CFLAGS="$CFLAGS
-O2
"
+export CFLAGS="$CFLAGS
$MYCFLAGS
"
./configure $args $@
./configure $args $@