Am Thu, 22 Jun 2017 15:47:56 +0200
schrieb Ralf Ramsauer <[email protected]>:

> Hi Henning,
> 
> On 06/22/2017 02:47 PM, Henning Schild wrote:
> > From: Henning Schild <[email protected]>
> > 
> > Some distros enable their compilers to default to building
> > position independant executables. The linux kernel just
> > disables that when set, also for its tools.
> > In the inmates subdir we already have -no-pic so that is not
> > affected.
> > 
> > Reported-by: florian <[email protected]>  
> Didn't "mike <[email protected]>" report that?

Indeed, Thanks!
Henning

>   Ralf
> > Signed-off-by: Henning Schild <[email protected]>
> > 
> > diff --git a/tools/Makefile b/tools/Makefile
> > --- a/tools/Makefile
> > +++ b/tools/Makefile
> > @@ -13,7 +13,7 @@
> >  # includes installation-related variables and definitions
> >  include $(src)/../scripts/include.mk
> >  
> > -LD = $(CC)
> > +LD = $(CC) $(KBUILD_CFLAGS)
> >  NOSTDINC_FLAGS :=
> >  LINUXINCLUDE := -I$(src)/../driver
> >  KBUILD_CFLAGS := -g -O3 -DLIBEXECDIR=\"$(libexecdir)\" \
> > @@ -22,6 +22,10 @@ KBUILD_CFLAGS := -g -O3 -DLIBEXECDIR=\"$
> >  LDFLAGS :=
> >  GCOV_PROFILE := n
> >  
> > +# force no-pie for distro compilers that enable pie by default
> > +KBUILD_CFLAGS += $(call cc-option, -fno-pie)
> > +KBUILD_CFLAGS += $(call cc-option, -no-pie)
> > +
> >  BINARIES := jailhouse
> >  
> >  HELPERS := \
> >   

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to