summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorJacob Champion <jchampion@apache.org>2017-05-25 23:18:28 +0200
committerJacob Champion <jchampion@apache.org>2017-05-25 23:18:28 +0200
commitd8d6987036f878cbc6a62c907c5f3ce96c674524 (patch)
tree2f4e577006c08fc1293ada6b3348dcae83e3bc29 /build
parentFeature branch for a C-based unit test suite. (diff)
downloadapache2-d8d6987036f878cbc6a62c907c5f3ce96c674524.tar.xz
apache2-d8d6987036f878cbc6a62c907c5f3ce96c674524.zip
rules.mk: output directly to target for LT_COMPILE
For source files that exist in another directory, libtool will by default put the output file in the current working directory instead of next to the source file. Our build logic would then `touch` an empty output file in the place where the actual output should have gone. Replace the touch logic with an explicit -o option to libtool. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/httpdunit@1796200 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build')
-rw-r--r--build/rules.mk.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/rules.mk.in b/build/rules.mk.in
index 283b515d25..1f4ea89529 100644
--- a/build/rules.mk.in
+++ b/build/rules.mk.in
@@ -44,8 +44,8 @@ CXX_COMPILE = $(BASE_CXX) $(PICFLAGS)
SH_COMPILE = $(LIBTOOL) --mode=compile $(BASE_CC) $(SHLTCFLAGS) -c $< && touch $@
SH_CXX_COMPILE = $(LIBTOOL) --mode=compile $(BASE_CXX) $(SHLTCFLAGS) -c $< && touch $@
-LT_COMPILE = $(LIBTOOL) --mode=compile $(COMPILE) $(LTCFLAGS) -c $< && touch $@
-LT_CXX_COMPILE = $(LIBTOOL) --mode=compile $(CXX_COMPILE) $(LTCFLAGS) -c $< && touch $@
+LT_COMPILE = $(LIBTOOL) --mode=compile $(COMPILE) $(LTCFLAGS) -c $< -o $@
+LT_CXX_COMPILE = $(LIBTOOL) --mode=compile $(CXX_COMPILE) $(LTCFLAGS) -c $< -o $@
# Link-related commands