Bug 57014 - Incorrect test for CC_FOR_BUILD prevents build (on FreeBSD at least)
Summary: Incorrect test for CC_FOR_BUILD prevents build (on FreeBSD at least)
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Build (show other bugs)
Version: 2.5-HEAD
Hardware: PC FreeBSD
: P2 critical (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-24 15:16 UTC by Ben Laurie
Modified: 2014-09-24 15:16 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Laurie 2014-09-24 15:16:32 UTC
server/Makefile (after buildconf/configure) contains this:

.ifdef CC_FOR_BUILD
gen_test_char: gen_test_char.c
	$(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) -DCROSS_COMPILE -o $@ $<
.else
gen_test_char_OBJECTS = gen_test_char.lo
gen_test_char: $(gen_test_char_OBJECTS)
	$(LINK) $(EXTRA_LDFLAGS) $(gen_test_char_OBJECTS) $(EXTRA_LIBS)
.endif

However, CC_FOR_BUILD appears to be defined (to "") even if not cross-compiling, resulting in a build failure.