Skip to content

Commit 40919f8

Browse files
committed
Revert 1839628, backport of 1839627
This macro does not result in a usable CC_FOR_BUILD Corresponds to unsuccessful pull request #8. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1839702 13f79535-47bb-0310-9956-ffa450edef68
1 parent b7152e3 commit 40919f8

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

Makefile.in

+7-3
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ LT_VERSION = @LT_VERSION@
4646

4747
CLEAN_TARGETS = apr-config.out apr.exp exports.c export_vars.c .make.dirs \
4848
build/apr_rules.out tools/gen_test_char@EXEEXT@ \
49-
tools/gen_test_char.o \
49+
tools/gen_test_char.o tools/gen_test_char.lo \
5050
include/private/apr_escape_test_char.h
5151
DISTCLEAN_TARGETS = config.cache config.log config.status \
5252
include/apr.h include/arch/unix/apr_private.h \
@@ -130,9 +130,13 @@ check: $(TARGET_LIB)
130130
etags:
131131
etags `find . -name '*.[ch]'`
132132

133-
tools/gen_test_char@EXEEXT@: tools/gen_test_char.c
133+
OBJECTS_gen_test_char = tools/gen_test_char.lo $(LOCAL_LIBS)
134+
tools/gen_test_char.lo: tools/gen_test_char.c
134135
$(APR_MKDIR) tools
135-
$(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $< -o $@
136+
$(LT_COMPILE)
137+
138+
tools/gen_test_char@EXEEXT@: $(OBJECTS_gen_test_char)
139+
$(LINK_PROG) $(OBJECTS_gen_test_char) $(ALL_LIBS)
136140

137141
include/private/apr_escape_test_char.h: tools/gen_test_char@EXEEXT@
138142
$(APR_MKDIR) include/private

build/buildcheck.sh

+1-3
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ fi
4040
# output is multiline from 1.5 onwards
4141

4242
# Require libtool 1.4 or newer
43-
if test -z "$libtool"; then
44-
libtool=`build/PrintPath glibtool1 glibtool libtool libtool15 libtool14`
45-
fi
43+
libtool=`build/PrintPath glibtool1 glibtool libtool libtool15 libtool14`
4644
lt_pversion=`$libtool --version 2>/dev/null|sed -e 's/([^)]*)//g;s/^[^0-9]*//;s/[- ].*//g;q'`
4745
if test -z "$lt_pversion"; then
4846
echo "buildconf: libtool not found."

configure.in

-3
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,6 @@ dnl can only be used once within a configure script, so this prevents a
183183
dnl preload section from invoking the macro to get compiler info.
184184
AC_PROG_CC
185185

186-
dnl Check build CC for gen_test_char compiling which is executed at build time.
187-
AX_PROG_CC_FOR_BUILD
188-
189186
dnl AC_PROG_SED is only avaliable in recent autoconf versions.
190187
dnl Use AC_CHECK_PROG instead if AC_PROG_SED is not present.
191188
ifdef([AC_PROG_SED],

0 commit comments

Comments
 (0)