guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] gnu: luajit: Add -fPIC into CFLAGS.


From: Ludovic Courtès
Subject: Re: [PATCH] gnu: luajit: Add -fPIC into CFLAGS.
Date: Tue, 16 Dec 2014 18:08:10 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Tomáš Čech <address@hidden> skribis:

> * gnu/packages/lua.scm (luajit): Add -fPIC into CFLAGS and pass it to make.

[...]

> --- a/gnu/packages/lua.scm
> +++ b/gnu/packages/lua.scm
> @@ -92,7 +92,8 @@ for configuration, scripting, and rapid prototyping.")
>      (arguments
>       '(#:tests? #f                      ;luajit is distributed without tests
>         #:phases (alist-delete 'configure %standard-phases)
> -       #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs 
> "out")))))
> +       #:make-flags (list (string-append "CFLAGS=-fPIC " (or (getenv 
> "CFLAGS") ""))
> +                          (string-append "PREFIX=" (assoc-ref %outputs 
> "out")))))

Could you add a comment explaining why this is needed?

Normally I would expect the makefiles to already contain that flag if
it’s needed.

Thanks,
Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]