* [PATCH] e2fsprogs: Add INCLUDES to BUILD_CFLAGS when cross-compiling
@ 2014-06-03 21:51 Gustavo Zacarias
2014-07-05 23:55 ` Theodore Ts'o
0 siblings, 1 reply; 3+ messages in thread
From: Gustavo Zacarias @ 2014-06-03 21:51 UTC (permalink / raw)
To: linux-ext4; +Cc: Gustavo Zacarias
We need $INCLUDES in BUILD_CFLAGS otherwise cross-compilation is broken
now that util/subst.c uses config.h (from commit 2873927d15).
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
configure.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.in b/configure.in
index 448a292..8bac870 100644
--- a/configure.in
+++ b/configure.in
@@ -1382,7 +1382,7 @@ if test $cross_compiling = no; then
BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
BUILD_LDFLAGS="$LDFLAGS"
else
- BUILD_CFLAGS=
+ BUILD_CFLAGS="$INCLUDES -DHAVE_CONFIG_H"
BUILD_LDFLAGS=
fi
AC_SUBST(BUILD_CFLAGS)
--
1.8.5.5
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] e2fsprogs: Add INCLUDES to BUILD_CFLAGS when cross-compiling
2014-06-03 21:51 [PATCH] e2fsprogs: Add INCLUDES to BUILD_CFLAGS when cross-compiling Gustavo Zacarias
@ 2014-07-05 23:55 ` Theodore Ts'o
2014-07-06 0:32 ` Gustavo Zacarias
0 siblings, 1 reply; 3+ messages in thread
From: Theodore Ts'o @ 2014-07-05 23:55 UTC (permalink / raw)
To: Gustavo Zacarias; +Cc: linux-ext4
On Tue, Jun 03, 2014 at 06:51:59PM -0300, Gustavo Zacarias wrote:
> We need $INCLUDES in BUILD_CFLAGS otherwise cross-compilation is broken
> now that util/subst.c uses config.h (from commit 2873927d15).
>
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
> ---
> configure.in | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/configure.in b/configure.in
> index 448a292..8bac870 100644
> --- a/configure.in
> +++ b/configure.in
> @@ -1382,7 +1382,7 @@ if test $cross_compiling = no; then
> BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
> BUILD_LDFLAGS="$LDFLAGS"
> else
> - BUILD_CFLAGS=
> + BUILD_CFLAGS="$INCLUDES -DHAVE_CONFIG_H"
I would think that
BUILD_CFLAGS="-I$(top_builddir)/lib -DHAVE_CONFIG_H"
... would be safer, since $INCLUDES could potentially include some
$CPPFLAGS that could be specific to the target architecture.
Yes?
- Ted
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] e2fsprogs: Add INCLUDES to BUILD_CFLAGS when cross-compiling
2014-07-05 23:55 ` Theodore Ts'o
@ 2014-07-06 0:32 ` Gustavo Zacarias
0 siblings, 0 replies; 3+ messages in thread
From: Gustavo Zacarias @ 2014-07-06 0:32 UTC (permalink / raw)
To: Theodore Ts'o; +Cc: linux-ext4
On 07/05/2014 08:55 PM, Theodore Ts'o wrote:
> I would think that
>
> BUILD_CFLAGS="-I$(top_builddir)/lib -DHAVE_CONFIG_H"
>
> ... would be safer, since $INCLUDES could potentially include some
> $CPPFLAGS that could be specific to the target architecture.
>
> Yes?
Not really, since that way it's missing config.h, still failing:
-----
cd ./util ; /usr/bin/make subst
make[2]: Entering directory
`/home/gustavoz/b/test/output/build/e2fsprogs-1.42.10/util'
CREATE dirpaths.h
CC subst.c
subst.c:8:20: fatal error: config.h: No such file or directory
compilation terminated.
-----
Regards.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-07-06 0:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-03 21:51 [PATCH] e2fsprogs: Add INCLUDES to BUILD_CFLAGS when cross-compiling Gustavo Zacarias
2014-07-05 23:55 ` Theodore Ts'o
2014-07-06 0:32 ` Gustavo Zacarias
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox