Re: How to build GCC for a specific machine using pbuilder?
Mikhail Morfikov wrote: > I know, but have you ever seen the debian/ dir in the gcc sources? Take a > look here[1]. > Until now I have not, but what is exactly the problem? You have what you need in the beginning include debian/rules.defs include debian/rules.unpack include debian/rules.patch control: $(control_dependencies) -mkdir -p $(stampdir) $(MAKE) -f debian/rules.conf $@ configure: control $(unpack_stamp) $(patch_stamp) $(MAKE) -f debian/rules2 $@ all the rest is supplementary so now you want to change the configuration and have a look at debian/rules2 It is more complicated, but I still don't understand what you expect here. If you know what you want to do with configure, then you can trash this and create your own simple version.
Re: How to build GCC for a specific machine using pbuilder?
On 19/06/2020 18:36, deloptes wrote: > Mikhail Morfikov wrote: > >> I've read something about setting flags like: --enable-languages= or >> --disable-multilib , which I think would speed the whole process up, but >> unfortunately I have no idea which file in the debian/ dir I should change >> to build the GCC for my machine only. Any suggestions? Also how to >> include/exclude patches so they were applied to the source -- there's no >> "debian/patches/series" file. > > usually it is in debian/rules (this is the debians make file) > > read the docs first - the thing with the patches is explained on the debian > wiki like > https://wiki.debian.org/debian/patches > https://www.debian.org/doc/manuals/maint-guide/modify.en.html > https://wiki.debian.org/debian/patches > > be patient it works > > I know, but have you ever seen the debian/ dir in the gcc sources? Take a look here[1]. [1]: https://salsa.debian.org/toolchain-team/gcc signature.asc Description: OpenPGP digital signature
Re: How to build GCC for a specific machine using pbuilder?
Mikhail Morfikov wrote: > I've read something about setting flags like: --enable-languages= or > --disable-multilib , which I think would speed the whole process up, but > unfortunately I have no idea which file in the debian/ dir I should change > to build the GCC for my machine only. Any suggestions? Also how to > include/exclude patches so they were applied to the source -- there's no > "debian/patches/series" file. usually it is in debian/rules (this is the debians make file) read the docs first - the thing with the patches is explained on the debian wiki like https://wiki.debian.org/debian/patches https://www.debian.org/doc/manuals/maint-guide/modify.en.html https://wiki.debian.org/debian/patches be patient it works
How to build GCC for a specific machine using pbuilder?
I wanted to change the GCC source a little bit by adding some patches that aren't available in Debian. I downloaded the Debian GCC source via "apt-get source" . I tried to build the source in the Debian way (using pbuilder) just to test how much time would it take. I gave up after 2h because probably it builds everything for everyone, and it's not really what I wanted it to do. I've read something about setting flags like: --enable-languages= or --disable-multilib , which I think would speed the whole process up, but unfortunately I have no idea which file in the debian/ dir I should change to build the GCC for my machine only. Any suggestions? Also how to include/exclude patches so they were applied to the source -- there's no "debian/patches/series" file. signature.asc Description: OpenPGP digital signature