From d770ab0143afb15a1b3c544b142d8e2c4435734e Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Mon, 16 Jan 2023 15:55:44 +0800 Subject: [PATCH] compile gen_test_char with the build architecture compiler Gbp-Pq: Name cross.patch --- Makefile.in | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Makefile.in b/Makefile.in index 9814afc..c767066 100644 --- a/Makefile.in +++ b/Makefile.in @@ -8,6 +8,7 @@ top_blddir=@apr_builddir@ # APR (Apache Portable Runtime) library Makefile. # CPP = @CPP@ +CC_FOR_BUILD ?= cc # get substituted into some targets APR_MAJOR_VERSION=@APR_MAJOR_VERSION@ @@ -46,7 +47,6 @@ LT_VERSION = @LT_VERSION@ CLEAN_TARGETS = apr-config.out apr.exp exports.c export_vars.c .make.dirs \ build/apr_rules.out tools/gen_test_char@EXEEXT@ \ - tools/gen_test_char.o tools/gen_test_char.lo \ include/private/apr_escape_test_char.h DISTCLEAN_TARGETS = config.cache config.log config.status \ include/apr.h include/arch/unix/apr_private.h \ @@ -140,13 +140,9 @@ check: $(TARGET_LIB) etags: etags `find . -name '*.[ch]'` -OBJECTS_gen_test_char = tools/gen_test_char.lo $(LOCAL_LIBS) -tools/gen_test_char.lo: tools/gen_test_char.c +tools/gen_test_char@EXEEXT@: tools/gen_test_char.c $(APR_MKDIR) tools - $(LT_COMPILE) - -tools/gen_test_char@EXEEXT@: $(OBJECTS_gen_test_char) - $(LINK_PROG) $(OBJECTS_gen_test_char) $(ALL_LIBS) + $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) -o $@ $< include/private/apr_escape_test_char.h: tools/gen_test_char@EXEEXT@ $(APR_MKDIR) include/private