[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] gnu: luajit: Add -fPIC into CFLAGS.
From: |
Tomas Cech |
Subject: |
Re: [PATCH] gnu: luajit: Add -fPIC into CFLAGS. |
Date: |
Tue, 16 Dec 2014 20:28:02 +0100 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/24.4 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
At Tue, 16 Dec 2014 18:08:10 +0100,
Ludovic Courtès wrote:
>
> 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?
OK, I'll do. But I don't know details and linking during build of EFL
failed when this was missing. Is this level of explanation sufficient?
> Normally I would expect the makefiles to already contain that flag if
> it’s needed.
Btw. it was already added to lua variable in the same file so I'm at
least consistent within file ;)
Thanks
>
> Thanks,
> Ludo’.