Ticket #364: patch-openMotif

File patch-openMotif, 1.9 KB (added by drm@…, 22 years ago)

patch for openMotif libtool problem

Line 
1--- openMotif-2.2.2/ltmain.sh   Sat Jun  1 17:50:56 2002
2+++ openMotif-2.2.2-patched/ltmain.sh   Tue Jul  2 07:31:38 2002
3@@ -2894,6 +2894,11 @@
4        if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
5          eval cmds=\"$archive_expsym_cmds\"
6        else
7+      if test "x$verstring" = "x0.0"; then
8+        tmp_verstring=
9+      else
10+        tmp_verstring="$verstring"
11+      fi
12          eval cmds=\"$archive_cmds\"
13        fi
14        save_ifs="$IFS"; IFS='~'
15@@ -3948,10 +3953,10 @@
16 
17 # Directory that this library needs to be installed in:
18 libdir='$install_libdir'"
19-         if test "$installed" = no && test $need_relink = yes; then
20-           $echo >> $output "\
21-relink_command=\"$relink_command\""
22-         fi
23+#        if test "$installed" = no && test $need_relink = yes; then
24+#          $echo >> $output "\
25+#relink_command=\"$relink_command\""
26+#        fi
27        done
28       fi
29 
30--- openMotif-2.2.2/configure   Thu Feb 14 06:15:45 2002
31+++ openMotif-2.2.2-patched/configure   Tue May 21 00:32:26 2002
32@@ -3426,11 +3426,11 @@
33     ;;
34 
35   darwin* | rhapsody*)
36-    allow_undefined_flag='-undefined suppress'
37+    allow_undefined_flag='-flat_namespace -undefined suppress'
38     # FIXME: Relying on posixy $() will cause problems for
39     #        cross-compilation, but unfortunately the echo tests do not
40     #        yet detect zsh echo's removal of \ escapes.
41-    archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
42+    archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $tmp_verstring'
43     # We need to add '_' to the symbols in $export_symbols first
44     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
45     hardcode_direct=yes