From db18a02be91eb8a8515ba7266e6e01ba12ec9700 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Tue, 4 Mar 2008 05:35:27 +0000 Subject: [PATCH] Linux requires -D__dead2= and -D__unused= to get rid of the sys/cdef.h-isms in the make source. The variant of linux I tried it on doesn't have arc4random, so -Darc4random=random too. --- usr.bin/make/Makefile.dist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/make/Makefile.dist b/usr.bin/make/Makefile.dist index d50804d3ac91..8823d74d5546 100644 --- a/usr.bin/make/Makefile.dist +++ b/usr.bin/make/Makefile.dist @@ -2,7 +2,7 @@ # a simple makefile to help builds on !FreeBSD systems pmake: @echo 'make started.' - cc -D__FBSDID="static const char *id=" -DDEFSHELLNAME=\"sh\" -I. -c *.c + cc -D__dead2="" -D__unused="" -Darc4random=random -D__FBSDID="static const char *id=" -DDEFSHELLNAME=\"sh\" -I. -c *.c cc *.o -o pmake @echo 'make completed.'