Problems with src/pl/tcl/mkMakefile.tcldefs.sh.in in 6.5 - Mailing list pgsql-hackers

From pgsql-hackers@thewrittenword.com
Subject Problems with src/pl/tcl/mkMakefile.tcldefs.sh.in in 6.5
Date
Msg-id 199907100542.AAA12893@postal.thewrittenword.com
Whole thread Raw
Responses Re: [HACKERS] Problems with src/pl/tcl/mkMakefile.tcldefs.sh.in in 6.5
Re: [HACKERS] Problems with src/pl/tcl/mkMakefile.tcldefs.sh.in in 6.5
List pgsql-hackers
For Digital UNIX 4.0D, shared libraries are created by:$ ld -shared -expect_unresolved "*" -o foo.so [objects]

This presents a problem for mkMakefile.tcldefs.sh.in. In tclConfig.sh:TCL_SHLIB_LD='ld -shared -expect_unresolved "*"'

In mkMakefile.tcldefs.sh.in:cat @TCL_CONFIG_SH@ |egrep '^TCL_|^TK_' |while read inpdo    eval eval echo $inpdone
>Makefile.tcldefs

Because of this, we wind up with the following in Makefile.tcldefs to
created shared libraries on Digital UNIX because of the eval:TCL_SHLIB_LD=ld -shared -expect_unresolved *

The "*" needs to be quoted to avoid shell expansion. How about the
following:cat @TCL_CONFIG_SH@ |egrep '^TCL_|^TK_' |sed -e "s/^\([^=]*\)='\(.*\)'$/\1=\2/"

-- 
albert chin (china@thewrittenword.com)


pgsql-hackers by date:

Previous
From: The Hermit Hacker
Date:
Subject: Re: [HACKERS] Mailing list volume
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Problems with src/pl/tcl/mkMakefile.tcldefs.sh.in in 6.5