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 -- http://linuxfromscratch.org/mailman/listinfo/hlfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
