Define PLATFORM correctly when cross-building.

This commit is contained in:
Ruslan Ermilov 2005-02-16 20:55:47 +00:00
parent 500f29d06e
commit e7b3b699a2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=141988

View File

@ -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}