You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jc...@apache.org on 2017/05/25 21:18:28 UTC

svn commit: r1796200 - /httpd/httpd/branches/httpdunit/build/rules.mk.in

Author: jchampion
Date: Thu May 25 21:18:28 2017
New Revision: 1796200

URL: http://svn.apache.org/viewvc?rev=1796200&view=rev
Log:
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.

Modified:
    httpd/httpd/branches/httpdunit/build/rules.mk.in

Modified: httpd/httpd/branches/httpdunit/build/rules.mk.in
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/httpdunit/build/rules.mk.in?rev=1796200&r1=1796199&r2=1796200&view=diff
==============================================================================
--- httpd/httpd/branches/httpdunit/build/rules.mk.in (original)
+++ httpd/httpd/branches/httpdunit/build/rules.mk.in Thu May 25 21:18:28 2017
@@ -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