[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Building python shared libraries using libtool
From: |
rboehne |
Subject: |
Re: Building python shared libraries using libtool |
Date: |
Thu, 15 Apr 2004 04:10:29 +0000 |
I'll approve that!
> It's currently impossible to build a .so using libtool for Python
> because of -bnoentry. If an entry point is specified with
> -Wl,-e[label], it won't be honored because -bnoentry is last on the
> command-line. Python .so files need -Wl,-e[label] on AIX. So, I
> propose we move -bnoentry before $compiler_flags with the attached
> patch against HEAD.
>
> Any objections?
>
> BTW, why do we even use -bnoentry?
>
> --
> albert chin (address@hidden)
>
> -- snip snip
> 2004-04-14 Albert Chin-A-Young <address@hidden>
>
> * m4/libtool.m4: Move -bnoentry linker option before
> $compiler_flags to honor any possible -e entries in
> LDFLAGS.
>
> Index: m4/libtool.m4
> ===================================================================
> RCS file: /cvsroot/libtool/libtool/m4/libtool.m4,v
> retrieving revision 1.61
> diff -u -3 -p -r1.61 libtool.m4
> --- m4/libtool.m4 31 Mar 2004 14:11:08 -0000 1.61
> +++ m4/libtool.m4 14 Apr 2004 18:01:41 -0000
> @@ -4630,7 +4632,7 @@ if test -n "$compiler"; then
> _LT_AC_SYS_LIBPATH_AIX
> _LT_AC_TAGVAR(hardcode_libdir_flag_spec,
> $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
>
> - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o
> $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test
> "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}";
> else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols
> $shared_flag"
> + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o
> $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"'
> $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo
> "${wl}${allow_undefined_flag}"; else :; fi`
> '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
> else
> if test "$host_cpu" = ia64; then
> _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R
> $libdir:/usr/lib:/lib'
>
>
> _______________________________________________
> Libtool-patches mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/libtool-patches