diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2000-11-10 18:18:04 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2000-11-10 18:18:04 +0000 |
commit | e4990fe810ceef111285bc866e5df8904e6c8835 (patch) | |
tree | f78900984337103b1d6fec2d4b7d6baadb0c5d2e /lang/lcc | |
parent | 9b19195ece5d5854b8686accbd095eb353f762f8 (diff) | |
download | ports-e4990fe810ceef111285bc866e5df8904e6c8835.tar.gz ports-e4990fe810ceef111285bc866e5df8904e6c8835.zip |
Notes
Diffstat (limited to 'lang/lcc')
-rw-r--r-- | lang/lcc/Makefile | 1 | ||||
-rw-r--r-- | lang/lcc/files/FreeBSD.c.in | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/lang/lcc/Makefile b/lang/lcc/Makefile index 3e1008c99119..195232a75c01 100644 --- a/lang/lcc/Makefile +++ b/lang/lcc/Makefile @@ -30,6 +30,7 @@ pre-configure: @${SED} -e "s:%%PREFIX%%:${PREFIX}:g" \ -e "s:%%LCCDESTDIR%%:${LCCDESTDIR}:g" \ -e "s:%%VERSION%%:${DISTNAME}:g" \ + -e "s:!!ARCH!!:${ARCH}:g" \ ${FILESDIR}/${OPSYS}.c.in > ${WRKSRC}/etc/${OPSYS}.c @# below can be used to patchup PLIST file for diff os/arch @#${SED} -e "s:%%LCCDESTDIR%%:${LCCDESTDIR}:g" \ diff --git a/lang/lcc/files/FreeBSD.c.in b/lang/lcc/files/FreeBSD.c.in index aefd9efca6a4..247d0a42f349 100644 --- a/lang/lcc/files/FreeBSD.c.in +++ b/lang/lcc/files/FreeBSD.c.in @@ -16,8 +16,8 @@ char *cpp[] = { "/usr/libexec/cpp", "-nostdinc", "-lang-c", "-U__GNUC__", "-D_POSIX_SOURCE", "-D__STDC__", "-D__STRICT_ANSI__", - "-Dunix", "-Di386", "-DFreeBSD", - "-D__unix__", "-D__i386__", "-D__FreeBSD__", + "-Dunix", "-Di!!ARCH!!", "-DFreeBSD", + "-D__unix__", "-D__!!ARCH!!__", "-D__FreeBSD__", "$1", "$2", "$3", 0}; char *lcc_ritchey_cpp[] = { @@ -27,7 +27,7 @@ char *lcc_ritchey_cpp[] = { "-U__GNUC__", "-Dunix", "-D__unix__", "-DFreeBSD", "-D__FreeBSD__", - "-Di386", "-D__i386__", + "-D!!ARCH!!", "-D__!!ARCH!!__", "-Dx86", "-D__x86__", "$1", "$2", "$3", 0 }; |