Skip to content

Commit 830cdb5

Browse files
committed
Clean up Red Hat Tcl RPM brain-damage in a more reliable way: fix the
value of TCL_SHLIB_LD in the shell script that creates Makefile.tcldefs, rather than trying to persude gmake to do it.
1 parent 8ac3b16 commit 830cdb5

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/pl/tcl/Makefile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# Makefile for the pltcl shared object
44
#
5-
# $Header: /cvsroot/pgsql/src/pl/tcl/Makefile,v 1.36 2002/01/21 03:27:46 tgl Exp $
5+
# $Header: /cvsroot/pgsql/src/pl/tcl/Makefile,v 1.37 2002/01/23 18:45:41 tgl Exp $
66
#
77
#-------------------------------------------------------------------------
88

@@ -49,10 +49,6 @@ SHLIB_EXTRA_LIBS=
4949
endif
5050
endif
5151

52-
# Suppress bogus soname switch that RedHat RPMs put into tclConfig.sh
53-
override TCL_SHLIB_LD := $(shell echo "$(TCL_SHLIB_LD)" | sed 's/-Wl,-soname[^ ]*//')
54-
55-
5652
%$(TCL_SHLIB_SUFFIX): %.o
5753
$(TCL_SHLIB_LD) -o $@ $< $(TCL_LIB_SPEC) $(SHLIB_EXTRA_LIBS)
5854

src/pl/tcl/mkMakefile.tcldefs.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
# $1 = path to tclConfig.sh ; $2 = output file
44

5+
# $Header: /cvsroot/pgsql/src/pl/tcl/Attic/mkMakefile.tcldefs.sh,v 1.2 2002/01/23 18:45:41 tgl Exp $
6+
57
if test x"$1" = x ; then
68
echo "$0: No tclConfig.sh file specified. Did you use \`configure --with-tcl'?" 1>&2
79
exit 1
@@ -10,6 +12,9 @@ fi
1012
# Source the file to obtain the correctly expanded variable definitions
1113
. "$1"
1214

15+
# Suppress bogus soname switch that RedHat RPMs put into tclConfig.sh
16+
TCL_SHLIB_LD=`echo "$TCL_SHLIB_LD" | sed 's/-Wl,-soname[^ ]*//'`
17+
1318
# Read the file a second time as an easy way of getting the list of variable
1419
# definitions to output.
1520
cat "$1" |

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy