Skip to content

Commit

Permalink
binutils: Remove --enable-static, --disable-shared
Browse files Browse the repository at this point in the history
These options are autoconf-generated and unused by Binutils. Not only do
they not do anything useful, but worse, they cause incorrect Binutils
builds. Plugins, which are supposed to be dynamically-loaded, instead
become useless, static archives.

Fixes #13.
  • Loading branch information
skeeto committed Sep 23, 2021
1 parent 3f7533b commit d33e08c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ RUN /binutils-$BINUTILS_VERSION/configure \
--with-sysroot=/bootstrap \
--target=$ARCH \
--disable-nls \
--enable-static \
--disable-shared \
--with-static-standard-libraries \
--disable-multilib
RUN make -j$(nproc)
RUN make install
Expand Down Expand Up @@ -143,8 +142,7 @@ RUN /binutils-$BINUTILS_VERSION/configure \
--host=$ARCH \
--target=$ARCH \
--disable-nls \
--enable-static \
--disable-shared \
--with-static-standard-libraries \
CFLAGS="-Os" \
LDFLAGS="-s"
RUN make -j$(nproc)
Expand Down

0 comments on commit d33e08c

Please sign in to comment.