posix/Makefile: use $(objpfx) for files in before-compile.
authorChris Metcalf <cmetcalf@ezchip.com>
Mon, 29 Dec 2014 15:58:25 +0000 (10:58 -0500)
committerChris Metcalf <cmetcalf@ezchip.com>
Mon, 29 Dec 2014 15:58:25 +0000 (10:58 -0500)
This fixes a build failure with a separate build tree where
posix-conf-vars-def.h wasn't being built.

ChangeLog
posix/Makefile

index 8701732..c25991f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-12-29  Chris Metcalf  <cmetcalf@ezchip.com>
+
+       * posix/Makefile (before-compile): Use $(objpfx) for
+       posix-conf-vars-def.h.
+
 2014-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
 
        * posix/getconf.c (main): Use size_t for type of I.
index fe332df..dd42e5d 100644 (file)
@@ -99,7 +99,7 @@ others                := getconf
 install-bin    := getconf
 install-others-programs        := $(inst_libexecdir)/getconf
 
-before-compile += testcases.h ptestcases.h posix-conf-vars-def.h
+before-compile += testcases.h ptestcases.h $(objpfx)posix-conf-vars-def.h
 
 # So they get cleaned up.
 generated += $(addprefix wordexp-test-result, 1 2 3 4 5 6 7 8 9 10) \