Date: Wed, 11 Nov 2020 08:19:27 +1100 From: Dewayne Geraghty <dewayne@heuristicsystems.com.au> To: freebsd-ports@freebsd.org Subject: Re: Using gcc as a build dependency only Message-ID: <3c4b1504-8d84-b8df-e23b-a8e6aad1566b@heuristicsystems.com.au> In-Reply-To: <20201110205509.0dfabcf7@raksha.tavi.co.uk> References: <20201110205509.0dfabcf7@raksha.tavi.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
On 11/11/2020 7:55 am, Bob Eager wrote: > I have a port that, for reasons I won't go into, I build with gcc. > > It all works fine with USE_GCC= yes - no problem. > > The issue is that it's a build dependency and a run dependency. So > anyone wanting to use it has to install gcc, and is discouraged because > (a) it's big and (b) it drags in other stuff. > > Presumably this is because it needs the gcc runtime, but I'm not sure. > And I can't see a runtime package that parallels the compiler. > > Can anyone comment on this? And please don't say 'convert to clang' > because that isn't possible, at least not yet. > _______________________________________________ > freebsd-ports@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" > Hi Bob, I have faced the same dilemma. The process I use is to: Install (tar) only the gcc files needed, usually libstdc++.s* libgcc_s* You might need to consider the other tools that gcc uses (like math/{gmp,mpc,mpfr} and then add to /usr/ports/Mk/local.mk, I append: RUN_DEPENDS:=${RUN_DEPENDS:Ngcc*} BUILD_DEPENDS:=${BUILD_DEPENDS:Ngcc*} I also have, but I'm unsure if this is still required LIB_DEPENDS:=${LIB_DEPENDS:Ngcc*} I hope someone has a better way? Regards. PS All my build, install, update processes are automated; so you'll need something to track gcc (and friends) updates.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3c4b1504-8d84-b8df-e23b-a8e6aad1566b>