summaryrefslogtreecommitdiffstats
path: root/secure
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2005-02-16 20:55:47 +0000
committerru <ru@FreeBSD.org>2005-02-16 20:55:47 +0000
commit28e20b0b0866733fbef98813e1feee754630540c (patch)
treed544b987e2df349db2fc2f96006d18eafca2bd29 /secure
parent8fa4f6f9a4f4e6f10e2b7ca3982474af6928366a (diff)
downloadFreeBSD-src-28e20b0b0866733fbef98813e1feee754630540c.zip
FreeBSD-src-28e20b0b0866733fbef98813e1feee754630540c.tar.gz
Define PLATFORM correctly when cross-building.
Diffstat (limited to 'secure')
-rw-r--r--secure/lib/libcrypto/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/secure/lib/libcrypto/Makefile b/secure/lib/libcrypto/Makefile
index 24d8d67..2c246c9 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}
OpenPOWER on IntegriCloud