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]
Other format: [Raw text]

[PATCH, committed] AIX SHLIB_INSTALL


	The recent multilib shared libgcc changes caused problems at
installation time because libgcc_s now is installed in a directory
hierarchy.  libgcc.mk now is the first reference to the multilib
hierarchy, so it needs to create the directories for the shared libraries
if they do not exist.

David


	* t-aix43 (SHLIB_INSTALL): Create directory for shared library.
	* t-aix52 (SHLIB_INSTALL): Same.

Index: t-aix43
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/t-aix43,v
retrieving revision 1.25
diff -c -p -r1.25 t-aix43
*** t-aix43	19 Feb 2005 11:44:09 -0000	1.25
--- t-aix43	23 Feb 2005 18:10:39 -0000
*************** SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2
*** 57,63 ****
  	rm -f @multilib_dir@/shr.o
  # $(slibdir) double quoted to protect it from expansion while building
  # libgcc.mk.  We want this delayed until actual install time.
! SHLIB_INSTALL = $(INSTALL_DATA) @multilib_dir@/@shlib_base_name@.a \
  		$$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@/
  SHLIB_LIBS = -lc `case @multilib_dir@ in *pthread*) echo -lpthread ;; esac`
  SHLIB_MKMAP = $(srcdir)/mkmap-flat.awk
--- 57,65 ----
  	rm -f @multilib_dir@/shr.o
  # $(slibdir) double quoted to protect it from expansion while building
  # libgcc.mk.  We want this delayed until actual install time.
! SHLIB_INSTALL = \
! 	$$(mkinstalldirs) $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@; \
! 	$(INSTALL_DATA) @multilib_dir@/@shlib_base_name@.a \
  		$$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@/
  SHLIB_LIBS = -lc `case @multilib_dir@ in *pthread*) echo -lpthread ;; esac`
  SHLIB_MKMAP = $(srcdir)/mkmap-flat.awk
Index: t-aix52
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/t-aix52,v
retrieving revision 1.8
diff -c -p -r1.8 t-aix52
*** t-aix52	19 Feb 2005 11:44:09 -0000	1.8
--- t-aix52	23 Feb 2005 18:10:39 -0000
*************** SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2
*** 38,44 ****
  	rm -f @multilib_dir@/shr.o
  # $(slibdir) double quoted to protect it from expansion while building
  # libgcc.mk.  We want this delayed until actual install time.
! SHLIB_INSTALL = $(INSTALL_DATA) @multilib_dir@/@shlib_base_name@.a \
  		$$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@/
  SHLIB_LIBS = -lc `case @multilib_dir@ in *pthread*) echo -lpthread ;; esac`
  SHLIB_MKMAP = $(srcdir)/mkmap-flat.awk
--- 38,46 ----
  	rm -f @multilib_dir@/shr.o
  # $(slibdir) double quoted to protect it from expansion while building
  # libgcc.mk.  We want this delayed until actual install time.
! SHLIB_INSTALL = \
! 	$$(mkinstalldirs) $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@; \
! 	$(INSTALL_DATA) @multilib_dir@/@shlib_base_name@.a \
  		$$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@/
  SHLIB_LIBS = -lc `case @multilib_dir@ in *pthread*) echo -lpthread ;; esac`
  SHLIB_MKMAP = $(srcdir)/mkmap-flat.awk


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