Re: Bug #14120 Updated: libtool needs help.
| From: | Larry Rosenman | Date: | Sun, 30 Dec 2001 22:58:16 +0000 |
| Subject: | Re: Bug #14120 Updated: libtool needs help. | ||
| References: | 1 2 3 4 5 6 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-75393@lists.php.net to get a copy of this message | ||
* Larry Rosenman <ler@lerctr.org> [011230 16:04]:
> * Larry Rosenman <ler@lerctr.org> [011230 15:19]:
> here is a patch that fixes it for me, but I don't know how to get this
> into the configure.in stuff... (I can't find it).
snip.....
Ok, I found it, here are two patches, one to aclocal.m4, and the other
to configure. I believe they are equivalent, and fix my issues.
can someone look at committing them?
*** aclocal.m4.old Sun Dec 30 08:00:26 2001
--- aclocal.m4 Sun Dec 30 16:48:53 2001
***************
*** 3579,3584 ****
--- 3579,3595 ----
export_dynamic_flag_spec='-Bexport'
;;
+ sysv5uw7* | unixware7* | sysv5Open*)
+ no_undefined_flag='${wl}-z ${wl}text'
+ if test "$GCC" = yes; then
+ archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs
$compiler_flags'
+ else
+ archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs
$compiler_flags'
+ fi
+ runpath_var='LD_RUN_PATH'
+ hardcode_shlibpath_var=no
+ ;;
+
sysv5*)
no_undefined_flag=' -z text'
# $CC -shared without GNU ld will not create a library from C++
***************
*** 3622,3637 ****
runpath_var=LD_RUN_PATH
;;
- sysv5uw7* | unixware7*)
- no_undefined_flag='${wl}-z ${wl}text'
- if test "$GCC" = yes; then
- archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs
$compiler_flags'
- else
- archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs
$compiler_flags'
- fi
- runpath_var='LD_RUN_PATH'
- hardcode_shlibpath_var=no
- ;;
*)
ld_shlibs=no
--- 3633,3638 ----
***************
*** 5161,5168 ****
lt_cv_file_magic_test_file=/lib/libc.so
;;
! sysv5uw[[78]]* | sysv4*uw2*)
lt_cv_deplibs_check_method=pass_all
;;
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
--- 5162,5170 ----
lt_cv_file_magic_test_file=/lib/libc.so
;;
! sysv5uw[[78]]* | sysv4*uw2* | sysv5Open*)
lt_cv_deplibs_check_method=pass_all
+ lt_cv_archive_cmds_need_lc=no
;;
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
*** configure.old Sun Dec 30 08:01:52 2001
--- configure Sun Dec 30 16:40:04 2001
***************
*** 62866,62873 ****
lt_cv_file_magic_test_file=/lib/libc.so
;;
! sysv5uw[78]* | sysv4*uw2*)
lt_cv_deplibs_check_method=pass_all
;;
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
--- 62866,62874 ----
lt_cv_file_magic_test_file=/lib/libc.so
;;
! sysv5uw[78]* | sysv4*uw2*|sysv5Open* )
lt_cv_deplibs_check_method=pass_all
+ lt_cv_archive_cmds_need_lc=no
;;
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
***************
*** 64744,64749 ****
--- 64745,64761 ----
export_dynamic_flag_spec='-Bexport'
;;
+ sysv5uw7* | unixware7* | sysv5Open*)
+ no_undefined_flag='${wl}-z ${wl}text'
+ if test "$GCC" = yes; then
+ archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs
$compiler_flags'
+ else
+ archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs
$compiler_flags'
+ fi
+ runpath_var='LD_RUN_PATH'
+ hardcode_shlibpath_var=no
+ ;;
+
sysv5*)
no_undefined_flag=' -z text'
# $CC -shared without GNU ld will not create a library from C++
***************
*** 64785,64801 ****
hardcode_shlibpath_var=no
hardcode_runpath_var=yes
runpath_var=LD_RUN_PATH
- ;;
-
- sysv5uw7* | unixware7*)
- no_undefined_flag='${wl}-z ${wl}text'
- if test "$GCC" = yes; then
- archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs
$compiler_flags'
- else
- archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs
$compiler_flags'
- fi
- runpath_var='LD_RUN_PATH'
- hardcode_shlibpath_var=no
;;
*)
--- 64797,64802 ----
--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ler@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
*** aclocal.m4.old Sun Dec 30 08:00:26 2001 --- aclocal.m4 Sun Dec 30 16:48:53 2001 *************** *** 3579,3584 **** --- 3579,3595 ---- export_dynamic_flag_spec='-Bexport' ;; + sysv5uw7* | unixware7* | sysv5Open*) + no_undefined_flag='${wl}-z ${wl}text' + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var=no + ;; + sysv5*) no_undefined_flag=' -z text' # $CC -shared without GNU ld will not create a library from C++ *************** *** 3622,3637 **** runpath_var=LD_RUN_PATH ;; - sysv5uw7* | unixware7*) - no_undefined_flag='${wl}-z ${wl}text' - if test "$GCC" = yes; then - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - runpath_var='LD_RUN_PATH' - hardcode_shlibpath_var=no - ;; *) ld_shlibs=no --- 3633,3638 ---- *************** *** 5161,5168 **** lt_cv_file_magic_test_file=/lib/libc.so ;; ! sysv5uw[[78]]* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) --- 5162,5170 ---- lt_cv_file_magic_test_file=/lib/libc.so ;; ! sysv5uw[[78]]* | sysv4*uw2* | sysv5Open*) lt_cv_deplibs_check_method=pass_all + lt_cv_archive_cmds_need_lc=no ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) *** configure.old Sun Dec 30 08:01:52 2001 --- configure Sun Dec 30 16:40:04 2001 *************** *** 62866,62873 **** lt_cv_file_magic_test_file=/lib/libc.so ;; ! sysv5uw[78]* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) --- 62866,62874 ---- lt_cv_file_magic_test_file=/lib/libc.so ;; ! sysv5uw[78]* | sysv4*uw2*|sysv5Open* ) lt_cv_deplibs_check_method=pass_all + lt_cv_archive_cmds_need_lc=no ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) *************** *** 64744,64749 **** --- 64745,64761 ---- export_dynamic_flag_spec='-Bexport' ;; + sysv5uw7* | unixware7* | sysv5Open*) + no_undefined_flag='${wl}-z ${wl}text' + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var=no + ;; + sysv5*) no_undefined_flag=' -z text' # $CC -shared without GNU ld will not create a library from C++ *************** *** 64785,64801 **** hardcode_shlibpath_var=no hardcode_runpath_var=yes runpath_var=LD_RUN_PATH - ;; - - sysv5uw7* | unixware7*) - no_undefined_flag='${wl}-z ${wl}text' - if test "$GCC" = yes; then - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - runpath_var='LD_RUN_PATH' - hardcode_shlibpath_var=no ;; *) --- 64797,64802 ----
*** aclocal.m4.old Sun Dec 30 08:00:26 2001 --- aclocal.m4 Sun Dec 30 16:48:53 2001 *************** *** 3579,3584 **** --- 3579,3595 ---- export_dynamic_flag_spec='-Bexport' ;; + sysv5uw7* | unixware7* | sysv5Open*) + no_undefined_flag='${wl}-z ${wl}text' + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var=no + ;; + sysv5*) no_undefined_flag=' -z text' # $CC -shared without GNU ld will not create a library from C++ *************** *** 3622,3637 **** runpath_var=LD_RUN_PATH ;; - sysv5uw7* | unixware7*) - no_undefined_flag='${wl}-z ${wl}text' - if test "$GCC" = yes; then - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - runpath_var='LD_RUN_PATH' - hardcode_shlibpath_var=no - ;; *) ld_shlibs=no --- 3633,3638 ---- *************** *** 5161,5168 **** lt_cv_file_magic_test_file=/lib/libc.so ;; ! sysv5uw[[78]]* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) --- 5162,5170 ---- lt_cv_file_magic_test_file=/lib/libc.so ;; ! sysv5uw[[78]]* | sysv4*uw2* | sysv5Open*) lt_cv_deplibs_check_method=pass_all + lt_cv_archive_cmds_need_lc=no ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) *** configure.old Sun Dec 30 08:01:52 2001 --- configure Sun Dec 30 16:40:04 2001 *************** *** 62866,62873 **** lt_cv_file_magic_test_file=/lib/libc.so ;; ! sysv5uw[78]* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) --- 62866,62874 ---- lt_cv_file_magic_test_file=/lib/libc.so ;; ! sysv5uw[78]* | sysv4*uw2*|sysv5Open* ) lt_cv_deplibs_check_method=pass_all + lt_cv_archive_cmds_need_lc=no ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) *************** *** 64744,64749 **** --- 64745,64761 ---- export_dynamic_flag_spec='-Bexport' ;; + sysv5uw7* | unixware7* | sysv5Open*) + no_undefined_flag='${wl}-z ${wl}text' + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var=no + ;; + sysv5*) no_undefined_flag=' -z text' # $CC -shared without GNU ld will not create a library from C++ *************** *** 64785,64801 **** hardcode_shlibpath_var=no hardcode_runpath_var=yes runpath_var=LD_RUN_PATH - ;; - - sysv5uw7* | unixware7*) - no_undefined_flag='${wl}-z ${wl}text' - if test "$GCC" = yes; then - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - runpath_var='LD_RUN_PATH' - hardcode_shlibpath_var=no ;; *) --- 64797,64802 ----