Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit 3d29536

Browse files
committed
Add the config option --enable-new-config to use later versions of
config.guess and config.sub for the packages that use autotools. With this option, we can (mostly) build libelf, libdwarf, libmonitor, libunwind, libxml2, open-analysis and xerces on powerpc/le and ARM (not all points in the matrix work). This is mostly a temporary option. At some point, we will use the new config.guess always.
1 parent 1e1868a commit 3d29536

File tree

14 files changed

+3349
-2
lines changed

14 files changed

+3349
-2
lines changed

Makefile.conf.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ BUILD = @build@
1515
HOST = @host@
1616
IS_CROSS_COMPILE = @is_cross_compile@
1717

18+
USE_NEW_CONFIG = @enable_new_config@
19+
1820
SYMTABAPI_PLATFORM = @symtabAPI_platform@
1921
USE_SYMTAB_82 = @use_symtab_82@
2022
USE_SYMTAB_61 = @use_symtab_61@

binutils/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ SRC_DIR = version-binutils-2.20.1
99

1010
FETCH_TARFILE = binutils-2.20.1-hpc-r117.tar.gz
1111

12+
AC_CONFIG_DIR = binutils-2.20.1
13+
1214
BUILD_SUBDIRS = libiberty bfd opcodes intl binutils
1315
POST_INSTALL_CMD = ./post-install
1416

build-utils/Makefile.inc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ BUILD_SUBDIRS ?= none
5151
INSTALL_SUBDIR ?= $(PKG_NAME)
5252

5353
FETCH_COPY_FILES ?= none
54+
AC_CONFIG_DIR ?= none
5455

5556
FETCH_CMD ?= true
5657
PATCH_CMD ?= default
@@ -126,6 +127,16 @@ refetch:
126127
cp -f -p "$(SRC_DIR)/$$f" "$(SRC_DIR)/$$f.orig" ; \
127128
done ; \
128129
fi
130+
@if test 'x$(USE_NEW_CONFIG)' = xyes && test 'x$(AC_CONFIG_DIR)' != xnone ; then \
131+
echo "installing new config.guess, config.sub" ; \
132+
for f in config.guess config.sub ; do \
133+
rm -f "$(SRC_DIR)/$(AC_CONFIG_DIR)/$$f.orig" ; \
134+
mv -f "$(SRC_DIR)/$(AC_CONFIG_DIR)/$$f" \
135+
"$(SRC_DIR)/$(AC_CONFIG_DIR)/$$f.orig" ; \
136+
cp -f "../config/$$f.new" \
137+
"$(SRC_DIR)/$(AC_CONFIG_DIR)/$$f" || exit 2 ; \
138+
done ; \
139+
fi
129140
@if test 'x$(POST_FETCH_CMD)' != xnone ; then \
130141
echo ; echo "===> ($(PKG_NAME)) post fetch ..." ; \
131142
echo '$(POST_FETCH_CMD)' ; \

0 commit comments

Comments
 (0)