diff options
author | Theodore Ts'o <tytso@mit.edu> | 2005-11-09 18:37:07 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2005-11-09 18:37:07 -0400 |
commit | dd947da232d2442f86c2f4d595cf7d3b76604e49 (patch) | |
tree | f19e5e1651356dfc257a1aa4ba08ac748d996361 /util | |
parent | 8dceb92407f751d1a8aecd4bfb36d1fe2dc3cf9a (diff) | |
download | e2fsprogs-dd947da232d2442f86c2f4d595cf7d3b76604e49.tar.gz |
Fix cross-compilation problems when CFLAGS contain target-specific options
Use BUILD_CCFLAGS and BUILD_LDFLAGS instead of CCFLAGS and LDFLAGS in
the build system when building files in the util directory which are
needed during the build process. This avoids potential problems when
cross-compiling some of the options are not recognized as valid by the
host compiler. (Addresses Sourceforge Bug #1261547)
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'util')
-rw-r--r-- | util/ChangeLog | 8 | ||||
-rw-r--r-- | util/Makefile.in | 6 |
2 files changed, 11 insertions, 3 deletions
diff --git a/util/ChangeLog b/util/ChangeLog index df1a439d..d345c902 100644 --- a/util/ChangeLog +++ b/util/ChangeLog @@ -1,3 +1,11 @@ +2005-10-26 Theodore Ts'o <tytso@mit.edu> + + * Makefile.in: Use BUILD_CCFLAGS and BUILD_LDFLAGS instead of + CCFLAGS and LDFLAGS when to avoid potential problems when + cross-compiling some of the options are not recognized as + valid by the host compiler. (Addresses Sourceforge Bug + #1261547) + 2005-07-19 Theodore Ts'o <tytso@mit.edu> * all.exclude, subset.exclude: Remove BitKeeper and add diff --git a/util/Makefile.in b/util/Makefile.in index 8ec00c90..4c3d07ce 100644 --- a/util/Makefile.in +++ b/util/Makefile.in @@ -15,7 +15,7 @@ SRCS = $(srcdir)/subst.c .c.o: @echo " CC $<" - @$(BUILD_CC) -c $(ALL_CFLAGS) $< -o $@ + @$(BUILD_CC) -c $(BUILD_CFLAGS) $< -o $@ PROGS= subst @@ -23,11 +23,11 @@ all:: $(PROGS) gen-tarball subst: subst.o @echo " LD $@" - @$(BUILD_CC) $(ALL_LDFLAGS) -o subst subst.o + @$(BUILD_CC) $(BUILD_LDFLAGS) -o subst subst.o copy_sparse: copy_sparse.o @echo " LD $@" - @$(BUILD_CC) $(ALL_LDFLAGS) -o copy_sparse copy_sparse.o + @$(BUILD_CC) $(BUILD_LDFLAGS) -o copy_sparse copy_sparse.o gen-tarball: $(srcdir)/gen-tarball.in $(top_builddir)/config.status @echo " CONFIG.STATUS $@" |