summaryrefslogtreecommitdiff
path: root/x11/blt/patches/patch-ae
blob: 9c1fa0386596ceb6b181253cf1847af5fc94d399 (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
31
32
33
34
$NetBSD: patch-ae,v 1.3 2002/09/23 22:39:23 jlam Exp $

--- configure.orig	Wed Jan 12 12:15:36 2000
+++ configure
@@ -2694,7 +2694,7 @@ TCL_LIB_DIR=${TCL_EXEC_PREFIX}/lib
 TK_LIB_DIR=${TK_EXEC_PREFIX}/lib
 
 case $target in
-  *-sunos4*|NetBSD-*|FreeBSD-*|OpenBSD-*)
+  *-sunos4*|*-*-netbsd*|FreeBSD-*|OpenBSD-*)
     TCL_LIB_SPEC="-ltcl${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}"
     TK_LIB_SPEC="-ltk${TK_MAJOR_VERSION}${TK_MINOR_VERSION}"
     ;;
@@ -3391,9 +3391,10 @@ test_ok=no
 fi
 
     if test "$test_ok" = yes; then
+      LDFLAGS="-L${prefix}/lib -L${X11BASE}/lib -Wl,-R${prefix}/lib -Wl,-R${X11BASE}/lib"
       SHLIB_CFLAGS="-fpic"
       SHLIB_LD="ld"
-      SHLIB_LD_FLAGS="-Bshareable -x"
+      SHLIB_LD_FLAGS="-Bshareable -x -R${prefix}/lib -R${X11BASE}/lib"
     fi
     ;;
 
@@ -3542,7 +3543,7 @@ INCLUDES=${INC_SPECS}
 #	Propagate prefix argument as installation directory.
 #--------------------------------------------------------------------
 
-BLT_LIBRARY="${prefix}/lib/blt${BLT_VERSION}"
+BLT_LIBRARY="${prefix}/lib/tcl/blt${BLT_VERSION}"
 
 
 #--------------------------------------------------------------------