diff options
Diffstat (limited to 'build')
-rwxr-xr-x | build | 22 |
1 files changed, 15 insertions, 7 deletions
@@ -17,7 +17,6 @@ configure: # BFD and opcodes libraries. # * Don't enable multilib (multiarch is better). # * Enable plugins. - # * Don't expect to find Gettext. for target in $$(cat ../targets); do \ if [ '$(OPK_HOST_ARCH)' = "$${target}" ]; then \ LIB_PATH="=/usr/local/lib/$${target}=:/usr/local/lib"; \ @@ -33,7 +32,7 @@ configure: --with-sysroot="$${OPK_SYSROOT:-/}" \ --program-transform-name="s&^&$${target}-&" \ --enable-shared --disable-multilib \ - --enable-plugins --disable-nls \ + --enable-plugins \ --with-pkgversion='GNU Binutils for ProteanOS' || \ exit 1; \ done @@ -121,19 +120,28 @@ install: build >"$${ld_so_conf}"; \ done # Move documentation into binutils-doc data directory. - mkdir -p 'binutils-doc.data/usr' + # Move locale files into binutils-locales data directory. + mkdir -p 'binutils-doc.data/usr/share' + mkdir -p 'binutils-locales.data/usr/share' for target in $$(cat ../targets); do \ - if [ ! -d 'binutils-doc.data/usr/share' ]; then \ - mv "binutils-$${target}.data/usr/share" 'binutils-doc.data/usr' || \ + if [ ! -d 'binutils-doc.data/usr/share/man' ]; then \ + mv "binutils-$${target}.data/usr/share/man" 'binutils-doc.data/usr/share' || \ exit 1; \ for file in 'binutils-doc.data/usr/share/man/man1/'*; do \ mv "$${file}" "$${file%/*}/$${file##*/$${target}-}" || \ exit 1; \ done; \ - else \ - rm -Rf "binutils-$${target}.data/usr/share" || \ + fi; \ + if [ ! -d 'binutils-doc.data/usr/share/info' ]; then \ + mv "binutils-$${target}.data/usr/share/info" 'binutils-doc.data/usr/share' || \ exit 1; \ fi; \ + if [ ! -d 'binutils-locales.data/usr/share/locale' ]; then \ + mv "binutils-$${target}.data/usr/share/locale" 'binutils-locales.data/usr/share' || \ + exit 1; \ + fi; \ + rm -Rf "binutils-$${target}.data/usr/share" || \ + exit 1; \ done # Move BFD development files into libbfd-dev-* data directory. for target in $$(cat ../targets); do \ |