--- Dan Nicholson <[EMAIL PROTECTED]> wrote: > Thanks for the post, Sean. Opening a ticket is helpful because things > aren't forgotten about there. But you've got my attention, so... >
Firstly, thanks, Dan, for your quick reply. And the tips you provided. Shall I still open the ticket, then, and apply the changes you suggested? > Typically with make, you can pass in any variable changes you want as > arguments on the command line. Make will prefer the values you've told > it about. So, rather than running sed on all the Makefiles to set the > proper default, you can just tell make about it at build time. > > Could you see if this works? > > make JAVA_LIBS="$JAVA_HOME/lib" JAVA_INCLUDES="$JAVA_HOME/include" > Yes, it builds, and it's simple! Elegant even. Kinda makes me feel a tad foolish for contriving my roundabout newbie method, but then again, I did learn a bit about sed (like passing env. variables). I just assumed that make followed Makefiles to the letter, didn't know I could override variables. > Also, just a small tip. With sed, since you made the delimiter :, you > no longer have to escape any /'s in the fields. So, the \ in > $JAVA_HOME\/lib is unnecessary. > Yes, I must have left that there when I initially tried to use "/" as the delimiter only to find out that when the shell substituted the "/"s in my env. variables that it mucked things up. Thanks again for your reply! --Sean __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
