I want to build binutils with at least pe-x86_64 support. To accomplish this, I decided to '--enable-targets=pe-x86-64'. This worked, compiled, and I could even use ld to link. What it did not have however, is a "--susystem" option.
Confused as I was, I tried numerous variations like replacing the dash with an underscore, and even building for all targets. This is my current configure script:
Code: Select all
${srcdir}/binutils-${pkgver}/configure --prefix=/usr \
--with-lib-path=/usr/lib:/usr/local/lib \
--with-bugurl=https://bugs.archlinux.org/ \
--enable-threads --enable-shared --with-pic \
--enable-ld=default --enable-gold --enable-plugins \
--disable-werror
I finally tried to make a binutils that exclusively targets pe-x86_64, using --target=pe-x86_64. This worked and I was able to use --subsystem.
This is not what I want to do though, I do not want pe-x86_64 to be my default target. I want to replace my current linker with the cross-enabled one, and thus I only want pe-x86_64 as an option. What am I doing wrong here? How do I build this?