Andrew Benton wrote: > On Sat, 03 Dec 2011 14:16:42 -0600 > Bruce Dubbs <[email protected]> wrote: > >> pete wrote: >> >>> To get Ghostscript-9.04 to build, I had to split the sed after configure >>> into two separate commands to get it to work. >> Well that sed as presented in the book is wrong. It should be: >> >> sed -i -e '/^EXTRALIBS/s/ -ldl/ -lfreetype -lz/' \ >> -e '/=imdi/aSHARE_EXPAT=1' Makefile >> >> Andy, do you want to fix it? > > Works for me. In what way is it "wrong"?
What is there now is sed -i '/^EXTRALIBS/s# -ldl# -lfreetype -lz# /=imdi/aSHARE_EXPAT=1' Makefile I think the newline may confuse sed even though it is inside the single quotes. It certainly confused me at first. Using -e and lining them up vertically makes is a lot more obvious what it is doing. I also changed the # to / because I thought it was a little more readable, but not incorrect. I'll also note that the user needs to look at the original Makefile to see why -ldl is being removed. It doesn't have to be removed, but is certainly cleaner. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
