From 28e20b0b0866733fbef98813e1feee754630540c Mon Sep 17 00:00:00 2001 From: ru Date: Wed, 16 Feb 2005 20:55:47 +0000 Subject: [PATCH] Define PLATFORM correctly when cross-building. --- secure/lib/libcrypto/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/secure/lib/libcrypto/Makefile b/secure/lib/libcrypto/Makefile index 24d8d6769047..2c246c9e6e1c 100644 --- a/secure/lib/libcrypto/Makefile +++ b/secure/lib/libcrypto/Makefile @@ -297,11 +297,11 @@ CSTD= gnu89 CLEANFILES= buildinf.h opensslconf.h evp.h -buildinf.h: +buildinf.h: ${.CURDIR}/Makefile ( echo "#ifndef MK1MF_BUILD"; \ echo " /* auto-generated by crypto/Makefile.ssl for crypto/cversion.c */"; \ echo " #define CFLAGS \"$(CC)\""; \ - echo " #define PLATFORM \"`uname -s`-`uname -m`\""; \ + echo " #define PLATFORM \"FreeBSD-${MACHINE_ARCH}\""; \ echo " #define DATE \"`LC_ALL=C date`\""; \ echo "#endif" ) > ${.TARGET}