[arch-releng] [PATCH 4/4] Secure ARCH parsing in Makefile

Henning Garus henning.garus at googlemail.com
Tue Jun 30 09:49:22 EDT 2009


On Tue, Jun 30, 2009 at 2:35 PM, Gerhard Brauer<gerbra at archlinux.de> wrote:
> Am Dienstag, den 30.06.2009, 17:59 +0530 schrieb Abhishek Dasgupta:
>
>> Sourcing makepkg.conf would directly give access to CARCH.
>>
>
> Hmm, this is a Makefile (called by make). AFAIK souring therein is not
> possible.... (I don't know..)
>

I am no expert on Makefiles, but

ARCH?=$(shell source /etc/makepkg.conf; echo "$$CARCH")

seems to work.

  Henning


More information about the arch-releng mailing list