From 0ad7574f933e754957d2df890bd84ba3ccea19ee Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Sat, 21 Oct 2000 01:47:05 +0000 Subject: Makefile.in (SHLIB_NM_FLAGS): New. * Makefile.in (SHLIB_NM_FLAGS): New. (libgcc.mk): Pass it. * mklibgcc.in (libgcc.map): Use it. * rs6000/t-aix43 (SHLIB_EXT, SHLIB_LINK, SHLIB_LIBS, SHLIB_MKMAP, SHLIB_MAPFILES, SHLIB_NM_FLAGS): New. From-SVN: r36989 --- gcc/config/rs6000/t-aix43 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'gcc/config') diff --git a/gcc/config/rs6000/t-aix43 b/gcc/config/rs6000/t-aix43 index 390afe6..7db8ae1 100644 --- a/gcc/config/rs6000/t-aix43 +++ b/gcc/config/rs6000/t-aix43 @@ -48,6 +48,22 @@ MULTILIB_MATCHES = mcpu?power=mpower \ LIBGCC = stmp-multilib INSTALL_LIBGCC = install-multilib +# Build a shared libgcc library. +SHLIB_EXT = .a +SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \ + -Wl,-bE:@shlib_map_file@ -o @multilib_dir@/shr.o \ + @multilib_flags@ @shlib_objs@ -lc \ + `case @shlib_base_name@ in \ + *pthread*) echo -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a ;; \ + *) echo -lc ;; esac` ; \ + rm -f tmp-@shlib_base_name@.a ; \ + $(AR_CREATE_FOR_TARGET) tmp-@shlib_base_name@.a @multilib_dir@/shr.o ; \ + mv tmp-@shlib_base_name@.a @shlib_base_name@.a ; \ + rm -f @multilib_dir@/shr.o +SHLIB_LIBS = -lc `case @shlib_base_name@ in *pthread*) echo -lpthread ;; esac` +SHLIB_MKMAP = $(srcdir)/mkmap-flat.awk +SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver +SHLIB_NM_FLAGS = -Bpg # Both 32-bit and 64-bit objects in archives AR_FLAGS_FOR_TARGET=-X32_64 -- cgit v1.1