]> granicus.if.org Git - apache/commitdiff
rules.mk: output directly to target for LT_COMPILE
authorJacob Champion <jchampion@apache.org>
Thu, 25 May 2017 21:18:28 +0000 (21:18 +0000)
committerJacob Champion <jchampion@apache.org>
Thu, 25 May 2017 21:18:28 +0000 (21:18 +0000)
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

build/rules.mk.in

index 283b515d2588655c66c76f5269a54c6680c93c6e..1f4ea895292ab3d955514c32a6d63456c1a597d8 100644 (file)
@@ -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