projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
361eed7
)
build: Avoid warnings about _FORTIFY_SOURCE
author
Denis Kenzior
<denkenz@gmail.com>
Fri, 1 Aug 2014 14:29:40 +0000
(09:29 -0500)
committer
Denis Kenzior
<denkenz@gmail.com>
Fri, 1 Aug 2014 14:29:40 +0000
(09:29 -0500)
Gentoo (and others) define _FORTIFY_SOURCE=2 by default. We redefine
it, resulting in an error / configure failure.
acinclude.m4
patch
|
blob
|
history
diff --git
a/acinclude.m4
b/acinclude.m4
index
ac29c2b
..
13fd52c
100644
(file)
--- a/
acinclude.m4
+++ b/
acinclude.m4
@@
-12,7
+12,7
@@
AC_DEFUN([AC_PROG_CC_PIE], [
AC_DEFUN([COMPILER_FLAGS], [
if (test "${CFLAGS}" = ""); then
- CFLAGS="-Wall -O2 -D_FORTIFY_SOURCE=2"
+ CFLAGS="-Wall -O2 -
U_FORTIFY_SOURCE -
D_FORTIFY_SOURCE=2"
fi
if (test "$USE_MAINTAINER_MODE" = "yes"); then
CFLAGS="$CFLAGS -Werror -Wextra"