Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sh3/conf add comment about $CPP



details:   https://anonhg.NetBSD.org/src/rev/db339dc7360a
branches:  trunk
changeset: 504266:db339dc7360a
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Mon Feb 26 08:46:15 2001 +0000

description:
add comment about $CPP

>From source:

# XXX following definition is absolutely incorrect.
# Our cpp is not /usr/libexec/cpp but /usr/bin/cpp.
# True solution is:
#       1) copy /usr/bin/cpp into /usr/local/bin/sh-*-*-cpp
#       2) Edit CPP in sh-*-*-cpp correctly
#               (e.g. "CPP=`$CC -print-prog-name=cpp`").
#       3) Edit STDINCDIR in sh-*-*-cpp correctly
#               (e.g. STDINCDIR=/usr/local/sh-unknown-netbsdcoff/include)

# BROKEN
CPP=`$TARGET-gcc -print-prog-name=cpp`

# EXAMPLE
#CPP=/usr/local/bin/sh-unknown-netbsdcoff-cpp
#CPP=/usr/local/bin/sh-unknown-netbsdelf-cpp

diffstat:

 sys/arch/sh3/conf/build-sh3.eb |  15 +++++++++++++++
 sys/arch/sh3/conf/build-sh3.el |  15 +++++++++++++++
 2 files changed, 30 insertions(+), 0 deletions(-)

diffs (54 lines):

diff -r 771fce99f462 -r db339dc7360a sys/arch/sh3/conf/build-sh3.eb
--- a/sys/arch/sh3/conf/build-sh3.eb    Mon Feb 26 08:24:20 2001 +0000
+++ b/sys/arch/sh3/conf/build-sh3.eb    Mon Feb 26 08:46:15 2001 +0000
@@ -9,8 +9,23 @@
 CFLAGS="-D__NetBSD__"
 export MACHINE MACHINE_ARCH CFLAGS
 TARGET=/usr/pkg/cross/bin/sh-netbsdcoff
+
+# XXX following definition is absolutely incorrect.
+# Our cpp is not /usr/libexec/cpp but /usr/bin/cpp.
+# True solution is:
+#      1) copy /usr/bin/cpp into /usr/local/bin/sh-*-*-cpp
+#      2) Edit CPP in sh-*-*-cpp correctly
+#              (e.g. "CPP=`$CC -print-prog-name=cpp`").
+#      3) Edit STDINCDIR in sh-*-*-cpp correctly
+#              (e.g. STDINCDIR=/usr/local/sh-unknown-netbsdcoff/include)
+
+# BROKEN
 CPP=`$TARGET-gcc -print-prog-name=cpp`
 
+# EXAMPLE
+#CPP=/usr/local/bin/sh-unknown-netbsdcoff-cpp
+#CPP=/usr/local/bin/sh-unknown-netbsdelf-cpp
+
 make AR=$TARGET-ar AS=$TARGET-as CC=$TARGET-gcc LD=$TARGET-ld NM=$TARGET-nm \
        RANLIB=$TARGET-ranlib SIZE=$TARGET-size \
        STRIP=$TARGET-strip OBJCOPY=$TARGET-objcopy \
diff -r 771fce99f462 -r db339dc7360a sys/arch/sh3/conf/build-sh3.el
--- a/sys/arch/sh3/conf/build-sh3.el    Mon Feb 26 08:24:20 2001 +0000
+++ b/sys/arch/sh3/conf/build-sh3.el    Mon Feb 26 08:46:15 2001 +0000
@@ -9,8 +9,23 @@
 CFLAGS="-D__NetBSD__"
 export MACHINE MACHINE_ARCH CFLAGS
 TARGET=/usr/pkg/cross/bin/shel-netbsdcoff
+
+# XXX following definition is absolutely incorrect.
+# Our cpp is not /usr/libexec/cpp but /usr/bin/cpp.
+# True solution is:
+#      1) copy /usr/bin/cpp into /usr/local/bin/shel-*-*-cpp
+#      2) Edit CPP in shel-*-*-cpp correctly
+#              (e.g. "CPP=`$CC -print-prog-name=cpp`").
+#      3) Edit STDINCDIR in shel-*-*-cpp correctly
+#              (e.g. STDINCDIR=/usr/local/shel-unknown-netbsdcoff/include)
+
+# BROKEN
 CPP=`$TARGET-gcc -print-prog-name=cpp`
 
+# EXAMPLE
+#CPP=/usr/local/bin/shel-unknown-netbsdcoff-cpp
+#CPP=/usr/local/bin/shel-unknown-netbsdelf-cpp
+
 make AR=$TARGET-ar AS="$TARGET-as -little" CC=$TARGET-gcc LD=$TARGET-ld NM=$TARGET-nm \
        RANLIB=$TARGET-ranlib SIZE=$TARGET-size \
        STRIP=$TARGET-strip OBJCOPY=$TARGET-objcopy \



Home | Main Index | Thread Index | Old Index