summaryrefslogtreecommitdiffstats
path: root/x11-toolkits/tk83/files/patch-aa
blob: 1f33895446d2c3ed02a68cc5874b8f96d7ffa872 (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
35
36
37
38
39
40
41
--- configure.orig	Fri Aug 13 18:06:14 1999
+++ configure	Sat Sep  4 15:22:21 1999
@@ -1756,7 +1756,7 @@
 	    LDFLAGS="-Wl,-Bexport"
 	    LD_SEARCH_FLAGS=""
 	    ;;
-	NetBSD-*|FreeBSD-[12].*|OpenBSD-*)
+	NetBSD-*|FreeBSD-*|OpenBSD-*)
 	    # Not available on all versions:  check for include file.
 	    ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
@@ -1788,14 +1788,19 @@
   echo "$ac_t""yes" 1>&6
   
 		SHLIB_CFLAGS="-fpic"
-		SHLIB_LD="ld -Bshareable -x"
 		SHLIB_LD_LIBS=""
 		SHLIB_SUFFIX=".so"
 		DL_OBJS="tclLoadDl.o"
 		DL_LIBS=""
 		LDFLAGS=""
 		LD_SEARCH_FLAGS=""
-		SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
+          if eval "test \"`echo ${PORTOBJFORMAT}`\" = elf" ; then
+		SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1'
+		SHLIB_LD="ld -shared -x -soname \$@"
+	  else
+		SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0'
+		SHLIB_LD="ld -Bshareable -x"
+	  fi
 	    
 else
   echo "$ac_t""no" 1>&6
@@ -2266,6 +2271,7 @@
 	echo "$ac_t""no" 1>&6
     fi
 
+TCL_SRC_DIR=${prefix}/include/tcl${TCL_VERSION}
 
 LIB_RUNTIME_DIR='${LIB_RUNTIME_DIR}'
 
OpenPOWER on IntegriCloud