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
This commit is contained in:
parent
6c4c53a461
commit
bba3f2423b
|
@ -9,8 +9,23 @@ MACHINE_CPU=sh3
|
|||
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 \
|
||||
|
|
|
@ -9,8 +9,23 @@ MACHINE_CPU=sh3
|
|||
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 \
|
||||
|
|
Loading…
Reference in New Issue