Randy McMurchy wrote these words on 03/23/08 10:15 CST:

> So, just for the exercise. let's see who can come up with the most
> diminutive command(s) to insert in our instructions to modify
> tclConfig.sh or tclConfig.sh.in. We definitely don't want to
> modify the installed tclConfig.sh in /usr/lib.

Here's what I've come up with. Sorry that it is not in sed format,
but I'm off to fly helicopters and then Easter dinner with the
family. Will check back later. (BTW, this assume we modify
tclConfig.sh before installation. Seems easier than the .sh.in)

Needs to be modified:

TCL_CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
TCL_LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'

Replace ${LIB_.*} with /usr/lib

One little sed fixes both of them.


These need to be removed (they serve no purpose and if some package
actually looks for the builddir, then they're out of luck. I
cannot see modifying these to point at /usr/lib when the
specification doesn't even exit (i.e., why lie about it,
the builddir is *gone*?)

TCL_BUILD_LIB_SPEC
TCL_SRC_DIR
TCL_BUILD_STUB_LIB_SPEC
TCL_BUILD_STUB_LIB_PATH

The 3 TCL_BUILD_ lines can all be removed at once and the
remaining one can be just search for TCL_SRC and delete the line.

Seems one sed command with 3 short little -e directives would
do the trick for the entire file.

-- 
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]
10:49:00 up 35 days, 1:37, 1 user, load average: 0.00, 0.01, 0.03
-- 
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