mirror of
https://review.haiku-os.org/buildtools
synced 2026-02-05 00:13:15 +01:00
Compare commits
6 Commits
btrev43014
...
btrev43019
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d6fd401aa3 | ||
|
|
e310d205fb | ||
|
|
68d377c247 | ||
|
|
5abab92edf | ||
|
|
073cb9127c | ||
|
|
ef37057d92 |
2
binutils/configure
vendored
2
binutils/configure
vendored
@@ -2049,7 +2049,7 @@ if test "${ENABLE_GOLD}" = "yes"; then
|
||||
is_elf=no
|
||||
case "${target}" in
|
||||
*-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
|
||||
| *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
|
||||
| *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* | *-*-haiku* \
|
||||
| *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2*)
|
||||
case "${target}" in
|
||||
*-*-linux*aout* | *-*-linux*oldld*)
|
||||
|
||||
@@ -304,7 +304,7 @@ if test "${ENABLE_GOLD}" = "yes"; then
|
||||
is_elf=no
|
||||
case "${target}" in
|
||||
*-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
|
||||
| *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
|
||||
| *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* | *-*-haiku* \
|
||||
| *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2*)
|
||||
case "${target}" in
|
||||
*-*-linux*aout* | *-*-linux*oldld*)
|
||||
|
||||
@@ -28,10 +28,54 @@ fi
|
||||
current_dir=$(pwd)
|
||||
base=/boot/develop/abi/x86/gcc2/tools/gcc-2.95.3-haiku-$GCCDATE
|
||||
if [ ! -d "$base" ]; then
|
||||
echo GCC directory \"$base\" does not exist!
|
||||
exit
|
||||
fi
|
||||
echo GCC directory \"$base\" does not exist, so we start a build ...
|
||||
echo "This is going to take a while ..."
|
||||
sleep 3
|
||||
|
||||
# From now on fail, if anything goes wrong.
|
||||
set -o errexit
|
||||
|
||||
cd $gcc_base/..
|
||||
|
||||
rm -rf binutils-obj
|
||||
mkdir binutils-obj
|
||||
cd binutils-obj
|
||||
CFLAGS="-O2" CXXFLAGS="-O2" ../binutils/configure \
|
||||
--prefix=/boot/develop/abi/x86/gcc2/tools/gcc-2.95.3-haiku-${GCCDATE} \
|
||||
--disable-nls --enable-shared=yes
|
||||
make
|
||||
cd ..
|
||||
|
||||
(cd gcc/gcc; touch c-parse.{h,c} cexp.c cp/parse.{c,h} c-gperf.h)
|
||||
|
||||
rm -rf gcc-obj
|
||||
mkdir gcc-obj
|
||||
cd gcc-obj
|
||||
CFLAGS="-O2" CXXFLAGS="-O2" ../gcc/configure \
|
||||
--prefix=/boot/develop/abi/x86/gcc2/tools/gcc-2.95.3-haiku-${GCCDATE} \
|
||||
--disable-nls --enable-shared=yes --enable-languages=c,c++
|
||||
# hack the Makefile to avoid trouble with stuff we don't need anyway
|
||||
sedExpr=
|
||||
for toRemove in libio libjava libobjc libstdc++; do
|
||||
sedExpr="$sedExpr -e 's@^\(TARGET_CONFIGDIRS =.*\)$toRemove\(.*\)@\1\2@'"
|
||||
done
|
||||
echo sedExpr: $sedExpr
|
||||
mv Makefile Makefile.bak || exit 1
|
||||
eval "sed $sedExpr Makefile.bak > Makefile" || exit 1
|
||||
rm Makefile.bak
|
||||
# build gcc
|
||||
make bootstrap
|
||||
cd ..
|
||||
|
||||
mkdir /boot/develop/abi/x86/gcc2/tools/gcc-2.95.3-haiku-${GCCDATE}
|
||||
cd binutils-obj
|
||||
make install
|
||||
cd ..
|
||||
cd gcc-obj
|
||||
make install
|
||||
cd ..
|
||||
ln -sfn gcc-2.95.3-haiku-${GCCDATE} /boot/develop/abi/x86/gcc2/tools/current
|
||||
fi
|
||||
|
||||
### HTML documentation ####################################
|
||||
|
||||
@@ -49,12 +93,10 @@ if [ ! -d "$html_base" ]; then
|
||||
makeinfo --html $gcc_base/../gcc/gcc/cpp.texi
|
||||
makeinfo --html $gcc_base/../gcc/gcc/gcc.texi
|
||||
makeinfo --html $gcc_base/../binutils/libiberty/libiberty.texi
|
||||
makeinfo --force --html $gcc_base/../gcc/libio/iostream.texi
|
||||
|
||||
ln -sf cpp/index.html $html_base/cpp.html
|
||||
ln -sf gcc/index.html $html_base/gcc.html
|
||||
ln -sf libiberty/index.html $html_base/libiberty.html
|
||||
ln -sf iostream/index.html $html_base/iostream.html
|
||||
fi
|
||||
if [ -d "$base/share/doc" ]; then
|
||||
echo "Adding binutils HTML documentation..."
|
||||
|
||||
@@ -131,9 +131,9 @@ ln -s c++/$gccVersion $installDir/include/g++
|
||||
|
||||
|
||||
# zip everything up
|
||||
gccVersionYear=20$(echo $GCCDATE | cut -c1-2)
|
||||
gccVersionMonth=$(echo $GCCDATE | cut -c3-4)
|
||||
gccVersionDay=$(echo $GCCDATE | cut -c5-6)
|
||||
gccVersionYear=20$(echo $gccDate | cut -c1-2)
|
||||
gccVersionMonth=$(echo $gccDate | cut -c3-4)
|
||||
gccVersionDay=$(echo $gccDate | cut -c5-6)
|
||||
packageFile="$currentDir/gcc-${gccVersion}-${gccArch}-gcc4-${gccVersionYear}-${gccVersionMonth}-${gccVersionDay}.zip"
|
||||
|
||||
cd /boot
|
||||
|
||||
@@ -56,6 +56,7 @@
|
||||
builtin_define ("__arm__"); \
|
||||
builtin_define ("__stdcall=__attribute__((__stdcall__))"); \
|
||||
builtin_define ("__cdecl=__attribute__((__cdecl__))"); \
|
||||
builtin_define ("__STDC_ISO_10646__=201103L"); \
|
||||
builtin_assert ("system=haiku"); \
|
||||
/* Haiku apparently doesn't support merging of symbols across shared \
|
||||
object boundaries. Hence we need to explicitly specify that \
|
||||
|
||||
@@ -39,6 +39,7 @@ Boston, MA 02111-1307, USA. */
|
||||
builtin_define ("_X86_"); \
|
||||
builtin_define ("__stdcall=__attribute__((__stdcall__))"); \
|
||||
builtin_define ("__cdecl=__attribute__((__cdecl__))"); \
|
||||
builtin_define ("__STDC_ISO_10646__=201103L"); \
|
||||
builtin_assert ("system=haiku"); \
|
||||
} \
|
||||
while (0)
|
||||
|
||||
@@ -47,6 +47,7 @@ Boston, MA 02111-1307, USA. */
|
||||
builtin_define ("__x86_64__"); \
|
||||
builtin_define ("__stdcall=__attribute__((__stdcall__))"); \
|
||||
builtin_define ("__cdecl=__attribute__((__cdecl__))"); \
|
||||
builtin_define ("__STDC_ISO_10646__=201103L"); \
|
||||
builtin_assert ("system=haiku"); \
|
||||
} \
|
||||
while (0)
|
||||
@@ -59,6 +60,7 @@ Boston, MA 02111-1307, USA. */
|
||||
builtin_define ("__X86__"); \
|
||||
builtin_define ("__stdcall=__attribute__((__stdcall__))"); \
|
||||
builtin_define ("__cdecl=__attribute__((__cdecl__))"); \
|
||||
builtin_define ("__STDC_ISO_10646__=201103L"); \
|
||||
builtin_assert ("system=haiku"); \
|
||||
} \
|
||||
while (0)
|
||||
|
||||
@@ -74,6 +74,7 @@ Boston, MA 02110-1301, USA. */
|
||||
builtin_define_std ("mc68020"); \
|
||||
builtin_define ("__stdcall=__attribute__((__stdcall__))"); \
|
||||
builtin_define ("__cdecl=__attribute__((__cdecl__))"); \
|
||||
builtin_define ("__STDC_ISO_10646__=201103L"); \
|
||||
builtin_assert ("system=haiku"); \
|
||||
} \
|
||||
while (0)
|
||||
|
||||
@@ -32,6 +32,7 @@ Boston, MA 02111-1307, USA. */
|
||||
builtin_define ("_MIPSEL_"); \
|
||||
builtin_define ("__stdcall=__attribute__((__stdcall__))"); \
|
||||
builtin_define ("__cdecl=__attribute__((__cdecl__))"); \
|
||||
builtin_define ("__STDC_ISO_10646__=201103L"); \
|
||||
builtin_assert ("system=haiku"); \
|
||||
if (flag_pic) \
|
||||
{ \
|
||||
|
||||
@@ -40,6 +40,7 @@ Boston, MA 02111-1307, USA. */
|
||||
builtin_define ("__powerpc__"); \
|
||||
builtin_define ("__stdcall=__attribute__((__stdcall__))"); \
|
||||
builtin_define ("__cdecl=__attribute__((__cdecl__))"); \
|
||||
builtin_define ("__STDC_ISO_10646__=201103L"); \
|
||||
builtin_assert ("system=haiku"); \
|
||||
builtin_assert ("cpu=powerpc"); \
|
||||
builtin_assert ("machine=powerpc"); \
|
||||
|
||||
@@ -2121,8 +2121,8 @@ stmp-int-hdrs: stmp-fixinc $(USER_H) xlimits.h
|
||||
else :; fi
|
||||
# Install the README
|
||||
rm -f include/README
|
||||
cp $(srcdir)/README-fixinc include/README
|
||||
chmod a+r include/README
|
||||
#cp $(srcdir)/README-fixinc include/README
|
||||
#chmod a+r include/README
|
||||
touch $@
|
||||
|
||||
# Now that float.h no longer depends upon enquire, this is actually a no-op.
|
||||
@@ -2164,7 +2164,7 @@ stmp-fixinc: fixinc.sh gsyslimits.h
|
||||
TARGET_MACHINE=$(target); srcdir=`cd $(srcdir); pwd`; \
|
||||
INSTALL_ASSERT_H=$(INSTALL_ASSERT_H); SHELL=$(SHELL) ;\
|
||||
export TARGET_MACHINE srcdir INSTALL_ASSERT_H SHELL ; \
|
||||
$(SHELL) ./fixinc.sh `pwd`/include $(SYSTEM_HEADER_DIR) $(OTHER_FIXINCLUDES_DIRS)
|
||||
#$(SHELL) ./fixinc.sh `pwd`/include $(SYSTEM_HEADER_DIR) $(OTHER_FIXINCLUDES_DIRS)
|
||||
rm -f include/syslimits.h
|
||||
if [ -f include/limits.h ]; then \
|
||||
mv include/limits.h include/syslimits.h; \
|
||||
|
||||
@@ -159,6 +159,7 @@ Boston, MA 02111-1307, USA. */
|
||||
-D__stdcall=__attribute__((__stdcall__)) \
|
||||
-D__cdecl=__attribute__((__cdecl__)) \
|
||||
-D__declspec(x)=__attribute__((x)) \
|
||||
-D__STDC_ISO_10646__=201103L \
|
||||
-Asystem(haiku)"
|
||||
|
||||
#undef CPP_SPEC
|
||||
|
||||
@@ -1 +1 @@
|
||||
char *version_string = "2.95.3-haiku-100818";
|
||||
char *version_string = "2.95.3-haiku-111122";
|
||||
|
||||
Reference in New Issue
Block a user