summaryrefslogtreecommitdiff
path: root/databases/java-db3/patches/patch-ab
blob: 3697f81816d3f6cc8779693f7bb02ee9879fe617 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
$NetBSD: patch-ab,v 1.1.1.1 2001/07/28 17:49:00 jlam Exp $

--- ../dist/configure.orig	Wed Jan 24 15:16:18 2001
+++ ../dist/configure	Thu Mar 22 17:36:06 2001
@@ -1605,6 +1605,7 @@
 if test "$GXX" = "yes"; then
 	CXXVERSION=`${MAKEFILE_CXX} --version`
 	case ${CXXVERSION} in
+	egcs*)	CXXFLAGS="-fexceptions $CXXFLAGS";;
 	1.*|2.[01234567].*|*-1.*|*-2.[01234567].* )
 		CXXFLAGS="-fhandle-exceptions $CXXFLAGS";;
 	* )	CXXFLAGS="-fexceptions $CXXFLAGS";;
@@ -1632,7 +1633,7 @@
 		--disable-static \
 	|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
 
-	SOSUFFIX=`sed -e '/^library_names_spec=/!d' -e 's/.*\.\([a-zA-Z0-9_]*\).*/\1/' ./libtool`
+	SOSUFFIX=`./libtool --config | sed -e '/^library_names_spec=/!d' -e 's/.*\.\([a-zA-Z0-9_]*\).*/\1/'`
 	DEFAULT_LIB="\$(libso_target)"
 	DEFAULT_INSTALL="install_dynamic"
 	LIBDB_ARGS="\$(libso_linkname)"
@@ -1644,7 +1645,7 @@
 
 	INSTALLER="\$(LIBTOOL) --mode=install cp"
 	POSTLINK="\$(LIBTOOL) --mode=execute true"
-	SOLINK="\$(LIBTOOL) --mode=link ${SAVE_CC} -avoid-version"
+	SOLINK="\$(LIBTOOL) --mode=link ${SAVE_CC}"
 	SOFLAGS="-rpath \$(libdir)"
 	o=".lo"
 fi