Define PLATFORM correctly when cross-building.

This commit is contained in:
ru 2005-02-16 20:55:47 +00:00
parent 8fa4f6f9a4
commit 28e20b0b08

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}