diff options
author | agc <agc> | 1998-09-17 12:02:54 +0000 |
---|---|---|
committer | agc <agc> | 1998-09-17 12:02:54 +0000 |
commit | 2a699a6084e5d41c3962e96cd8b18c1bdfdb21f2 (patch) | |
tree | 2899c22abec52459f21340a4bfc8cfa7fc6edbfe /lang/tcl80 | |
parent | 538eeb13764829fd597f7473a46055ceef91a90a (diff) | |
download | pkgsrc-2a699a6084e5d41c3962e96cd8b18c1bdfdb21f2.tar.gz |
Make Makefile honour the LDFLAGS value it gets passed.
Specify the library name in a form that libtool can deal with.
Diffstat (limited to 'lang/tcl80')
-rw-r--r-- | lang/tcl80/patches/patch-aa | 32 | ||||
-rw-r--r-- | lang/tcl80/patches/patch-ab | 15 |
2 files changed, 38 insertions, 9 deletions
diff --git a/lang/tcl80/patches/patch-aa b/lang/tcl80/patches/patch-aa index c425ed73560..f8eca12c9de 100644 --- a/lang/tcl80/patches/patch-aa +++ b/lang/tcl80/patches/patch-aa @@ -1,7 +1,7 @@ -$NetBSD: patch-aa,v 1.7 1998/09/10 10:39:02 agc Exp $ +$NetBSD: patch-aa,v 1.8 1998/09/17 12:02:54 agc Exp $ --- Makefile.in.orig Tue Nov 25 16:31:41 1997 -+++ Makefile.in Thu Sep 10 10:37:58 1998 ++++ Makefile.in Thu Sep 17 12:09:59 1998 @@ -55,7 +55,9 @@ BIN_INSTALL_DIR = $(INSTALL_ROOT)$(exec_prefix)/bin @@ -29,18 +29,38 @@ $NetBSD: patch-aa,v 1.7 1998/09/10 10:39:02 agc Exp $ - rm -f ${TCL_LIB_FILE} - @MAKE_LIB@ - $(RANLIB) ${TCL_LIB_FILE} -+ ${LIBTOOL} --mode=link cc -o ${.TARGET:.a=.la} ${OBJS:.o=.lo} -rpath ${PREFIX}/lib -version-info 1:0 ++ ${LIBTOOL} --mode=link ${CC} -o ${.TARGET:.a=.la} ${OBJS:.o=.lo} -rpath ${PREFIX}/lib -version-info 1:0 # Make target which outputs the list of the .o contained in the Tcl lib # usefull to build a single big shared library containing Tcl and other -@@ -330,7 +330,6 @@ +@@ -330,20 +330,19 @@ # case objs: ${OBJS} - tclsh: ${TCLSH_OBJS} ${TCL_LIB_FILE} - ${CC} @LD_FLAGS@ ${TCLSH_OBJS} @TCL_BUILD_LIB_SPEC@ ${LIBS} \ - @TCL_LD_SEARCH_FLAGS@ -o tclsh +- ${CC} @LD_FLAGS@ ${TCLSH_OBJS} @TCL_BUILD_LIB_SPEC@ ${LIBS} \ +- @TCL_LD_SEARCH_FLAGS@ -o tclsh ++ ${LIBTOOL} --mode=link ${CC} @LD_FLAGS@ ${TCLSH_OBJS} \ ++ ${TCL_LIB_FILE:.a=.la} ${LIBS} @TCL_LD_SEARCH_FLAGS@ -o tclsh + + tcltest: ${TCLTEST_OBJS} ${TCL_LIB_FILE} ${BUILD_DLTEST} +- ${CC} @LD_FLAGS@ ${TCLTEST_OBJS} @TCL_BUILD_LIB_SPEC@ ${LIBS} \ +- @TCL_LD_SEARCH_FLAGS@ -o tcltest ++ ${LIBTOOL} --mode=link ${CC} @LD_FLAGS@ ${TCLTEST_OBJS} \ ++ ${TCL_LIB_FILE:.a=.la} ${LIBS} @TCL_LD_SEARCH_FLAGS@ -o tcltest + + xttest: ${XTTEST_OBJS} ${GENERIC_OBJS} ${UNIX_OBJS} ${COMPAT_OBJS} \ + @DL_OBJS@ ${BUILD_DLTEST} +- ${CC} ${XTTEST_OBJS} ${GENERIC_OBJS} ${UNIX_OBJS} ${COMPAT_OBJS} \ +- @DL_OBJS@ @TCL_BUILD_LIB_SPEC@ ${LIBS} \ +- @TCL_LD_SEARCH_FLAGS@ -lXt -o xttest ++ ${LIBTOOL} --mode=link ${CC} ${XTTEST_OBJS} ${GENERIC_OBJS} \ ++ ${UNIX_OBJS} ${COMPAT_OBJS} @DL_OBJS@ ${TCL_LIB_FILE:.a=.la} \ ++ ${LIBS} @TCL_LD_SEARCH_FLAGS@ -lXt -o xttest + + + # Note, in the target below TCL_LIBRARY needs to be set or else @@ -421,21 +420,20 @@ fi; \ done; diff --git a/lang/tcl80/patches/patch-ab b/lang/tcl80/patches/patch-ab index 353c6fdad78..4f9328d084b 100644 --- a/lang/tcl80/patches/patch-ab +++ b/lang/tcl80/patches/patch-ab @@ -1,7 +1,7 @@ -$NetBSD: patch-ab,v 1.4 1998/08/07 11:09:25 agc Exp $ +$NetBSD: patch-ab,v 1.5 1998/09/17 12:02:54 agc Exp $ ---- configure.orig Tue Nov 25 11:31:42 1997 -+++ configure Mon Feb 9 07:20:00 1998 +--- configure.orig Tue Nov 25 16:31:42 1997 ++++ configure Thu Sep 17 11:36:29 1998 @@ -3781,7 +3781,7 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 @@ -11,3 +11,12 @@ $NetBSD: patch-ab,v 1.4 1998/08/07 11:09:25 agc Exp $ SHLIB_LD="ld -Bshareable -x" SHLIB_LD_LIBS="" SHLIB_SUFFIX=".so" +@@ -4518,7 +4518,7 @@ + s%@BUILD_DLTEST@%$BUILD_DLTEST%g + s%@DL_LIBS@%$DL_LIBS%g + s%@DL_OBJS@%$DL_OBJS%g +-s%@LD_FLAGS@%$LD_FLAGS%g ++s%@LD_FLAGS@%$LDFLAGS%g + s%@MAKE_LIB@%$MAKE_LIB%g + s%@MATH_LIBS@%$MATH_LIBS%g + s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g |