Received: from listserv.local (listserv [172.16.8.22]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTP id 4F180780DB0; Wed, 13 Oct 2021 21:07:41 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit To: Alex McGrath From: Alex McGrath Cc: ~alpine/aports@lists.alpinelinux.org In-Reply-To: <163415887307.6885.16198924620058104663.gitlab.26404.18730ab136b91c088f2f3181edbe758fe541d9bd@listserv.local> Subject: Re: [PATCH] main/gcc: add libgccjit subpackage Date: Wed, 13 Oct 2021 21:07:41 -0000 Message-ID: <163415926128.6885.12515237036920774846.gitlab.26404.18730ab136b91c088f2f3181edbe758fe541d9bd@listserv.local> On Wed, 13 Oct 2021 21:42:14 +0100, Alex McGrath wrote: > export CFLAGS="$CFLAGS -O2" > > + if $LANG_JIT; then That works okay but adding `--enable-shared-host` is also required which causes the rest of the compiler to slow down. >From https://gcc.gnu.org/install/configure.html: ``` --enable-host-shared Specify that the host code should be built into position-independent machine code (with -fPIC), allowing it to be used within shared libraries, but yielding a slightly slower compiler. This option is required when building the libgccjit.so library. Contrast with --enable-shared, which affects target libraries. ``` -- via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/26404#note_185367