compile gen_test_char with the build architecture compiler

Gbp-Pq: Name cross.patch
This commit is contained in:
Helmut Grohne 2023-01-16 15:55:44 +08:00 committed by zhouganqing
parent 6d00dacec9
commit d770ab0143
1 changed files with 3 additions and 7 deletions

View File

@ -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