This causes random.d to be generated which makes random.o depend on
mach_debug_U.h, ensuring it exists before random.c is compiled.

* trans/Makefile: Add random.c to SRCS when gcrypt is used.
---
 trans/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/trans/Makefile b/trans/Makefile
index f02ddf7..b2f63ca 100644
--- a/trans/Makefile
+++ b/trans/Makefile
@@ -60,6 +60,7 @@ ifneq (,$(wildcard ../config.make))
 endif
 
 ifeq ($(HAVE_LIBGCRYPT),yes)
+ SRCS += random.c
  targets += random
  random-LDLIBS = -lgcrypt
  random: startup_notifyServer.o mach_debugUser.o ../libtrivfs/libtrivfs.a
-- 
2.7.5


Reply via email to