aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/blt/files/patch-aa
blob: 9bab2567b8ef3d98f9842ffa50c1a48b096651fd (plain) (blame)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
--- configure.orig  Fri Jun  9 14:59:47 2000
+++ configure   Fri Jun  9 14:59:40 2000
@@ -1140,7 +1140,7 @@
 #
 #  1. command line (--with-cflags)
 #  2. cached variable ($blt_cv_prog_cflags)
-#  3. set to "-O6" if using gcc ($BLT_HAVE_GCC)
+#  3. set to "-O2" if using gcc ($BLT_HAVE_GCC)
 #  4. otherwise, default to "-O"
 #
 echo $ac_n "checking default compiler flags""... $ac_c" 1>&6
@@ -1150,7 +1150,7 @@
 elif test "x${blt_cv_prog_cflags}" != "x" ; then
   CFLAGS=${blt_cv_prog_cflags}
 elif test "${BLT_HAVE_GCC}" = "yes" ; then
-  CFLAGS=-O6
+  CFLAGS=-O2
 else
   CFLAGS=-O
 fi
@@ -2572,6 +2572,7 @@
   if test "x$tclConfigFile" = "x" ; then
     for dir in \
      `ls -dr /usr/local/tcl/tcl[7-9].[0-9]* 2>/dev/null` \
+     `ls -dr /usr/local/lib/tcl[7-9].[0-9]* 2>/dev/null` \
      /usr/local/tcl \
      /usr/local \
      /usr
@@ -2672,6 +2673,7 @@
   if test "x$tkConfigFile" = "x" ; then
     for dir in \
      `ls -dr /usr/local/tcl/tcl[7-9].[0-9]* 2>/dev/null` \
+     `ls -dr /usr/local/lib/tk[7-9].[0-9]* 2>/dev/null` \
      /usr/local/tcl \
      /usr/local \
      ${x_libraries} \
@@ -2776,7 +2778,7 @@
 fi
 
 case $target in
-  *-sunos4*|*-*-netbsd|NetBSD-*|FreeBSD-*|OpenBSD-*)
+  *-sunos4*|*-*-netbsd|NetBSD-*|*-*-freebsd*|OpenBSD-*)
     TCL_LIB_NAME="tcl${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}"
     TK_LIB_NAME="tk${TK_MAJOR_VERSION}${TK_MINOR_VERSION}"
     ;;
@@ -3559,7 +3561,13 @@
     if test "$test_ok" = yes; then
       SHLIB_CFLAGS="-fpic"
       SHLIB_LD="ld"
-      SHLIB_LD_FLAGS="-Bshareable -x"
+      if test `objformat` = "elf"; then
+        SHLIB_LD_FLAGS="-Bshareable -x -soname \$@"
+        SHLIB_SUFFIX=".so.${BLT_MAJOR_VERSION}"
+      else
+        SHLIB_LD_FLAGS="-Bshareable -x"
+        SHLIB_SUFFIX=".so.${BLT_MAJOR_VERSION}.${BLT_MINOR_VERSION}"
+      fi
     fi
     ;;