Randy McMurchy wrote these words on 03/23/08 12:11 CST:
> I had a few more minutes and here's what I came up with:
> 
> sed -i -e 's|${LIB_.*}|/usr/lib|' \
>        -e '/TCL_BUILD_\|TCL_SRC/d' \
>     tclConfig.sh

This would work. But it deletes 4 lines. And though there's been no
other comments (well, Ag's as well) other than Alex's, and there
is a bit of concern (see message about Graphiz in this thread),
I redid it.

Not to take anything away from Ag's method, I propose this for
review. It changes all 6 lines in the tclConfig.sh to sane values.

sed -i -e 's|-L`pwd`|-L/usr/lib|' \
       -e 's|"`pwd`|"/usr/lib|'   \
    configure

sed -i -e 's|@.._SEARCH_FLAGS@|-Wl,-rpath,/usr/lib|' \
       -e 's|@TCL_SRC_DIR@|/usr/include|'            \
    tclConfig.sh.in

These two seds would be run first thing after changing into the
tcl8.4.x/unix directory. I do like the fact of what Alex mentioned
that it is better to fix the root of the problem instead of a
post-processing fix.

-- 
Randy

rmlscsi: [bogomips 1003.22] [GNU ld version 2.16.1] [gcc (GCC) 4.0.3]
[GNU C Library stable release version 2.3.6] [Linux 2.6.14.3 i686]
11:55:00 up 36 days, 2:43, 1 user, load average: 0.00, 0.00, 0.00
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to