aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2000-11-11 02:18:04 +0800
committerobrien <obrien@FreeBSD.org>2000-11-11 02:18:04 +0800
commit6012a750a0d8270d5fd5acb8a6ea49f336b51ffd (patch)
treea41096dc0df8193ab4c1ab5c1672c3e90ace5ac1 /lang
parent9f89b4a4019314ae01db3e7c239954ce7999b045 (diff)
downloadfreebsd-ports-gnome-6012a750a0d8270d5fd5acb8a6ea49f336b51ffd.tar.gz
freebsd-ports-gnome-6012a750a0d8270d5fd5acb8a6ea49f336b51ffd.tar.zst
freebsd-ports-gnome-6012a750a0d8270d5fd5acb8a6ea49f336b51ffd.zip
Don't hardcode the arch symbols.
Diffstat (limited to 'lang')
-rw-r--r--lang/lcc/Makefile1
-rw-r--r--lang/lcc/files/FreeBSD.c.in6
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
};