HLFS: Glibc book - Chapter 6. kbd-1.12 issue ?

Robert Connolly robert at linuxfromscratch.org
Tue Nov 1 13:15:57 PST 2005


sed -e 's/^CFLAGS.*$/& -pie -fpie/' -i openvt/Makefile src/Makefile.in

would work for both.

Thanks

Adding -pie to LDFLAGS isn't necsessary because it's done with the hardened 
gcc specs. If this was a patch I would add it, so that the patch works 
independently, but for sed commands in the book its not needed. Adding -fpie 
to LDFLAGS does nothing, it gets ignored.

robert

On November 1, 2005 06:21 am, Antonio Flores wrote:
> Hello
>
> --- The book says:
>
> sed -e 's/^CFLAGS .*$/& -pie -fpie/'  -i openvt/Makefile src/Makefile.in
>
> --- I think there are an issue there,  and must be:
>
> sed -e 's/^CFLAGS.*$/& -pie -fpie/' -i openvt/Makefile
>                              ^ no space
> sed -e 's/^CFLAGS .*$/& -pie -fpie/' -i src/Makefile.in
>
> --- Please, can you say me if the next comand is ok ?:
> sed -e 's/^LDFLAGS .*$/& $(CFLAGS)/' -i src/Makefile.in
>
> It seems work well.
>
> Thanks in advance.
>
> AFG



More information about the hlfs-dev mailing list