PHP 4.0 Bug #7508: ltconfig doesn't handle our platform correctly
| From: | ler at lerctr dot org | Date: | Sat, 28 Oct 2000 10:11:49 +0000 |
| Subject: | PHP 4.0 Bug #7508: ltconfig doesn't handle our platform correctly | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-36220@lists.php.net to get a copy of this message | ||
From: ler@lerctr.org
Operating system: UnixWare 7.1.1
PHP version: 4.0.3
PHP Bug Type: Compile Problem
Bug description: ltconfig doesn't handle our platform correctly
ltconfig needs 2 tweaks to handle SCO UnixWare 7.1.1 (probably 2.x +).
Patch:
$ cat lt.patch
Index: ltconfig
===================================================================
RCS file: /cvsroot/php/ltconfig,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 ltconfig
*** ltconfig 2000/10/12 10:05:40 1.1.1.1
--- ltconfig 2000/10/19 18:19:53
***************
*** 1500,1506 ****
no_undefined_flag=' -z text'
# $CC -shared without GNU ld will not create a library from C++
# object files and a static libstdc++, better avoid it by now
! archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $d
eplibs $linkopts'
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | se
d -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $li
bobjs $deplibs $linkopts~$rm $lib.exp'
hardcode_libdir_flag_spec=
--- 1500,1506 ----
no_undefined_flag=' -z text'
# $CC -shared without GNU ld will not create a library from C++
# object files and a static libstdc++, better avoid it by now
! archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $d
eplibs $linkopts'
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | se
d -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $li
bobjs $deplibs $linkopts~$rm $lib.exp'
hardcode_libdir_flag_spec=
***************
*** 2101,2107 ****
soname_spec='${libname}${release}.so$major'
shlibpath_var=LD_LIBRARY_PATH
case "$host_vendor" in
! sequent)
file_magic_cmd='/bin/file'
deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared obje
ct|dynamic lib )'
;;
--- 2101,2107 ----
soname_spec='${libname}${release}.so$major'
shlibpath_var=LD_LIBRARY_PATH
case "$host_vendor" in
! sco|sequent)
file_magic_cmd='/bin/file'
deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared obje
ct|dynamic lib )'
;;
$
if you'd like me to mail this, please let me know.
Thanks
--
Edit Bug report at: http://bugs.php.net/?id=7508&edit=1