This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

AIX libtool fix


Alexandre,

	Would you please incorporate the following patch into whatever
libtool development sources need it?

Thanks, David

	* ltcf-c.sh, ltcf-cxx.sh (archive_expsym_cmds): Add space
	separating -bnoentry from ${allow_undefined_flag}.

Index: ltcf-c.sh
===================================================================
RCS file: /cvs/gcc/egcs/ltcf-c.sh,v
retrieving revision 1.9.2.4
diff -c -p -r1.9.2.4 ltcf-c.sh
*** ltcf-c.sh	2001/05/20 18:57:40	1.9.2.4
--- ltcf-c.sh	2001/05/21 22:07:54
*************** else
*** 348,354 ****
          build_libtool_need_lc=yes
          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
          # This is similar to how AIX traditionally builds it's shared libraries.
!         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
        fi
      fi
      ;;
--- 348,354 ----
          build_libtool_need_lc=yes
          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
          # This is similar to how AIX traditionally builds it's shared libraries.
!         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry ${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
        fi
      fi
      ;;
Index: ltcf-cxx.sh
===================================================================
RCS file: /cvs/gcc/egcs/ltcf-cxx.sh,v
retrieving revision 1.12.2.8
diff -c -p -r1.12.2.8 ltcf-cxx.sh
*** ltcf-cxx.sh	2001/05/20 18:57:40	1.12.2.8
--- ltcf-cxx.sh	2001/05/21 22:07:54
*************** case $host_os in
*** 204,210 ****
          whole_archive_flag_spec=' '
          build_libtool_need_lc=yes
          # This is similar to how AIX traditionally builds it's shared libraries.
!         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
        fi
      fi
      ;;
--- 204,210 ----
          whole_archive_flag_spec=' '
          build_libtool_need_lc=yes
          # This is similar to how AIX traditionally builds it's shared libraries.
!         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry ${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
        fi
      fi
      ;;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]