diff options
author | amodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-12-04 09:22:32 +0000 |
---|---|---|
committer | amodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-12-04 09:22:32 +0000 |
commit | 97745cc0148a83faafb5461666d6bb6b3ce3ecaa (patch) | |
tree | cda19c328108111f0a80088112160d7d214ff2ff | |
parent | 7b023c17ba5756caaaee5cbff33d8718892b7597 (diff) | |
download | gcc-97745cc0148a83faafb5461666d6bb6b3ce3ecaa.tar.gz |
* mklibgcc.in: Build shared libgcc and shared libunwind in gcc/.
Don't subst shlib_dir for SHLIB_LINK, SHLIBUNWIND_LINK,
SHLIB_INSTALL, and SHLIBUNWIND_INSTALL.
* config/i386/t-nwld (SHLIB_NAME): Use shlib_base_name in place of
shlib_dir and shlib_so_name.
* config/mips/t-slibgcc-irix (SHLIB_NAME): Likewise.
* config/t-libunwind-elf (SHLIB_NAME): Likewise.
* config/t-slibgcc-darwin (SHLIB_NAME): Likewise.
* config/t-slibgcc-elf-ver (SHLIB_NAME): Likewise.
* config/t-slibgcc-sld (SHLIB_NAME): Likewise.
(SHLIB_LINK): Don't use shlib_dir when creating symlink.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91724 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 26 | ||||
-rw-r--r-- | gcc/config/i386/t-nwld | 2 | ||||
-rw-r--r-- | gcc/config/mips/t-slibgcc-irix | 2 | ||||
-rw-r--r-- | gcc/config/t-libunwind-elf | 2 | ||||
-rw-r--r-- | gcc/config/t-slibgcc-darwin | 2 | ||||
-rw-r--r-- | gcc/config/t-slibgcc-elf-ver | 2 | ||||
-rw-r--r-- | gcc/config/t-slibgcc-sld | 6 | ||||
-rw-r--r-- | gcc/mklibgcc.in | 18 |
8 files changed, 34 insertions, 26 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 13b1004b441..e6b2b70eb18 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,10 +1,24 @@ +2004-12-04 Alan Modra <amodra@bigpond.net.au> + + * mklibgcc.in: Build shared libgcc and shared libunwind in gcc/. + Don't subst shlib_dir for SHLIB_LINK, SHLIBUNWIND_LINK, + SHLIB_INSTALL, and SHLIBUNWIND_INSTALL. + * config/i386/t-nwld (SHLIB_NAME): Use shlib_base_name in place of + shlib_dir and shlib_so_name. + * config/mips/t-slibgcc-irix (SHLIB_NAME): Likewise. + * config/t-libunwind-elf (SHLIB_NAME): Likewise. + * config/t-slibgcc-darwin (SHLIB_NAME): Likewise. + * config/t-slibgcc-elf-ver (SHLIB_NAME): Likewise. + * config/t-slibgcc-sld (SHLIB_NAME): Likewise. + (SHLIB_LINK): Don't use shlib_dir when creating symlink. + 2004-12-03 Roger Sayle <roger@eyesopen.com> * doc/tm.texi (TARGET_DELEGITIMIZE_ADDRESS): Document target hook. 2004-12-03 Richard Henderson <rth@redhat.com> - * alias.c (component_uses_parent_alias_set): Rename from + * alias.c (component_uses_parent_alias_set): Rename from can_address_p. Return bool. Reverse the sense of the result. Reinstate the check for alias set zero. (get_alias_set): Update to match. @@ -190,11 +204,11 @@ 2004-12-01 Jeff Law <law@redhat.com> - * tree-eh.c (save_eptr, save_filt): Now file scoped statics. - (honor_protect_cleanup_actions): Only create save_eptr and - save_filt if they do not already exist. - (lower_eh_constructs): Wipe all knowledge of save_eptr and - save_filt before returning. + * tree-eh.c (save_eptr, save_filt): Now file scoped statics. + (honor_protect_cleanup_actions): Only create save_eptr and + save_filt if they do not already exist. + (lower_eh_constructs): Wipe all knowledge of save_eptr and + save_filt before returning. 2004-12-02 Kazu Hirata <kazu@cs.umass.edu> diff --git a/gcc/config/i386/t-nwld b/gcc/config/i386/t-nwld index 7983e79fc00..37c88c0da3d 100644 --- a/gcc/config/i386/t-nwld +++ b/gcc/config/i386/t-nwld @@ -30,7 +30,7 @@ s-crt0: $(srcdir)/unwind-dw2-fde.h SHLIB_EXT = .nlm SHLIB_SONAME = @shlib_so_name@.nlm -SHLIB_NAME = @shlib_dir@@shlib_so_name@.nlm +SHLIB_NAME = @shlib_base_name@.nlm SHLIB_SLIBDIR_QUAL = @shlib_slibdir_qual@ SHLIB_DEF = $(srcdir)/config/i386/netware-libgcc.def SHLIB_MAP = $(srcdir)/config/i386/netware-libgcc.exp diff --git a/gcc/config/mips/t-slibgcc-irix b/gcc/config/mips/t-slibgcc-irix index 843ecd79e2b..b28514f0c39 100644 --- a/gcc/config/mips/t-slibgcc-irix +++ b/gcc/config/mips/t-slibgcc-irix @@ -4,7 +4,7 @@ SHLIB_EXT = .so SHLIB_SOLINK = @shlib_base_name@.so SHLIB_SOVERSION = 1 SHLIB_SONAME = @shlib_so_name@.so.$(SHLIB_SOVERSION) -SHLIB_NAME = @shlib_dir@@shlib_so_name@.so.$(SHLIB_SOVERSION) +SHLIB_NAME = @shlib_base_name@.so.$(SHLIB_SOVERSION) SHLIB_MAP = @shlib_map_file@ SHLIB_OBJS = @shlib_objs@ SHLIB_SLIBDIR_QUAL = @shlib_slibdir_qual@ diff --git a/gcc/config/t-libunwind-elf b/gcc/config/t-libunwind-elf index 01550945bdb..7ba247a6afa 100644 --- a/gcc/config/t-libunwind-elf +++ b/gcc/config/t-libunwind-elf @@ -6,7 +6,7 @@ LIBUNWINDDEP = unwind.inc unwind-dw2-fde.h unwind-dw2-fde.c SHLIBUNWIND_SOVERSION = 7 SHLIBUNWIND_SONAME = @shlib_so_name@.so.$(SHLIBUNWIND_SOVERSION) -SHLIBUNWIND_NAME = @shlib_dir@@shlib_so_name@.so.$(SHLIBUNWIND_SOVERSION) +SHLIBUNWIND_NAME = @shlib_base_name@.so.$(SHLIBUNWIND_SOVERSION) SHLIBUNWIND_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared \ -nodefaultlibs -Wl,-h,$(SHLIBUNWIND_SONAME) \ diff --git a/gcc/config/t-slibgcc-darwin b/gcc/config/t-slibgcc-darwin index 8127c944559..865f16fae77 100644 --- a/gcc/config/t-slibgcc-darwin +++ b/gcc/config/t-slibgcc-darwin @@ -5,7 +5,7 @@ SHLIB_VERSTRING = -compatibility_version $(SHLIB_MINOR) -current_version $(SHLIB SHLIB_EXT = .dylib SHLIB_SOLINK = @shlib_base_name@.dylib SHLIB_SONAME = @shlib_so_name@.$(SHLIB_MINOR).$(SHLIB_REVISION).dylib -SHLIB_NAME = @shlib_dir@@shlib_so_name@.$(SHLIB_MINOR).$(SHLIB_REVISION).dylib +SHLIB_NAME = @shlib_base_name@.$(SHLIB_MINOR).$(SHLIB_REVISION).dylib SHLIB_MAP = @shlib_map_file@ SHLIB_OBJS = @shlib_objs@ SHLIB_SLIBDIR_QUAL = @shlib_slibdir_qual@ diff --git a/gcc/config/t-slibgcc-elf-ver b/gcc/config/t-slibgcc-elf-ver index be65b634dd3..bf03277e0eb 100644 --- a/gcc/config/t-slibgcc-elf-ver +++ b/gcc/config/t-slibgcc-elf-ver @@ -5,7 +5,7 @@ SHLIB_EXT = .so SHLIB_SOLINK = @shlib_base_name@.so SHLIB_SOVERSION = 1 SHLIB_SONAME = @shlib_so_name@.so.$(SHLIB_SOVERSION) -SHLIB_NAME = @shlib_dir@@shlib_so_name@.so.$(SHLIB_SOVERSION) +SHLIB_NAME = @shlib_base_name@.so.$(SHLIB_SOVERSION) SHLIB_MAP = @shlib_map_file@ SHLIB_OBJS = @shlib_objs@ SHLIB_SLIBDIR_QUAL = @shlib_slibdir_qual@ diff --git a/gcc/config/t-slibgcc-sld b/gcc/config/t-slibgcc-sld index 5f2a5cafcbd..9a81af9ceb7 100644 --- a/gcc/config/t-slibgcc-sld +++ b/gcc/config/t-slibgcc-sld @@ -3,7 +3,7 @@ SHLIB_EXT = .so SHLIB_SOLINK = @shlib_base_name@.so SHLIB_SONAME = @shlib_so_name@.so.1 -SHLIB_NAME = @shlib_dir@@shlib_so_name@.so.1 +SHLIB_NAME = @shlib_base_name@.so.1 SHLIB_MAP = @shlib_map_file@ SHLIB_OBJS = @shlib_objs@ SHLIB_SLIBDIR_QUAL = @shlib_slibdir_qual@ @@ -12,12 +12,12 @@ SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \ -Wl,-h,$(SHLIB_SONAME) -Wl,-z,text -Wl,-z,defs \ -Wl,-M,$(SHLIB_MAP) -o $(SHLIB_NAME).tmp \ @multilib_flags@ $(SHLIB_OBJS) -lc && \ - rm -f @shlib_dir@$(SHLIB_SOLINK) && \ + rm -f $(SHLIB_SOLINK) && \ if [ -f $(SHLIB_NAME) ]; then \ mv -f $(SHLIB_NAME) $(SHLIB_NAME).`basename $(STAGE_PREFIX)`; \ else true; fi && \ mv $(SHLIB_NAME).tmp $(SHLIB_NAME) && \ - $(LN_S) $(SHLIB_SONAME) @shlib_dir@$(SHLIB_SOLINK) + $(LN_S) $(SHLIB_SONAME) $(SHLIB_SOLINK) # $(slibdir) double quoted to protect it from expansion while building # libgcc.mk. We want this delayed until actual install time. SHLIB_INSTALL = \ diff --git a/gcc/mklibgcc.in b/gcc/mklibgcc.in index cfef2bfc2c4..9729f2b41d1 100644 --- a/gcc/mklibgcc.in +++ b/gcc/mklibgcc.in @@ -173,21 +173,21 @@ for ml in $MULTILIBS; do if [ -z "$SHLIB_MULTILIB" ]; then if [ "$dir" = . ]; then libgcc_eh_a=$dir/libgcc_eh.a - libgcc_s_so_base=$dir/libgcc_s + libgcc_s_so_base=libgcc_s libgcc_s_so=${libgcc_s_so_base}${SHLIB_EXT} libgcc_s_soname=libgcc_s if [ "$LIBUNWIND" ]; then - libunwind_so_base=$dir/libunwind + libunwind_so_base=libunwind libunwind_so=${libunwind_so_base}${SHLIB_EXT} libunwind_soname=libunwind fi else libgcc_eh_a=$dir/libgcc_eh.a - libgcc_s_so_base=$dir/libgcc_s_${suffix} + libgcc_s_so_base=libgcc_s_${suffix} libgcc_s_so=${libgcc_s_so_base}${SHLIB_EXT} libgcc_s_soname=libgcc_s_${suffix} if [ "$LIBUNWIND" ]; then - libunwind_so_base=$dir/libunwind_${suffix} + libunwind_so_base=libunwind_${suffix} libunwind_so=${libunwind_so_base}${SHLIB_EXT} fi fi @@ -215,11 +215,11 @@ for ml in $MULTILIBS; do elif [ "$SHLIB_MULTILIB" = "$dir" ]; then libgcc_eh_a=$dir/libgcc_eh.a - libgcc_s_so_base=$dir/libgcc_s + libgcc_s_so_base=libgcc_s libgcc_s_so=${libgcc_s_so_base}${SHLIB_EXT} libgcc_s_soname=libgcc_s if [ "$LIBUNWIND" ]; then - libunwind_so_base=$dir/libunwind + libunwind_so_base=libunwind libunwind_so=${libunwind_so_base}${SHLIB_EXT} libunwind_soname=libunwind fi @@ -774,7 +774,6 @@ EOF -e "s%@shlib_base_name@%$libgcc_s_so_base%g" \ -e "s%@shlib_so_name@%$libgcc_s_soname%g" \ -e "s%@shlib_map_file@%$mapfile%g" \ - -e "s%@shlib_dir@%$shlib_dir%g" \ -e "s%@shlib_slibdir_qual@%$shlib_dir_qual%g" echo "all: $libgcc_s_so" fi @@ -788,7 +787,6 @@ EOF -e "s%@shlib_objs@%\$(objects)%g" \ -e "s%@shlib_base_name@%$libunwind_so_base%g" \ -e "s%@shlib_so_name@%$libunwind_soname%g" \ - -e "s%@shlib_dir@%$shlib_dir%g" \ -e "s%@shlib_slibdir_qual@%$shlib_dir_qual%g" echo "all: $libunwind_so" fi @@ -870,13 +868,11 @@ for ml in $MULTILIBS; do echo " $SHLIB_INSTALL" \ | sed -e "s%@shlib_base_name@%$shlib_base_name%g" \ -e "s%@shlib_so_name@%$shlib_so_name%g" \ - -e "s%@shlib_dir@%$shlib_dir%g" \ -e "s%@shlib_slibdir_qual@%$shlib_slibdir_qual%g" if [ "$LIBUNWIND" ]; then echo " $SHLIBUNWIND_INSTALL" \ | sed -e "s%@shlib_base_name@%$shlibunwind_base_name%g" \ -e "s%@shlib_so_name@%$shlibunwind_so_name%g" \ - -e "s%@shlib_dir@%$shlib_dir%g" \ -e "s%@shlib_slibdir_qual@%$shlib_slibdir_qual%g" libunwinddir='$(DESTDIR)$(slibdir)$(shlib_slibdir_qual)/$(shlib_dir)' echo ' $(INSTALL_DATA)' ${dir}/libunwind.a ${libunwinddir}/ @@ -887,13 +883,11 @@ for ml in $MULTILIBS; do echo " $SHLIB_INSTALL" \ | sed -e "s%@shlib_base_name@%$shlib_base_name%g" \ -e "s%@shlib_so_name@%$shlib_base_name%g" \ - -e "s%@shlib_dir@%%g" \ -e "s%@shlib_slibdir_qual@%%g" if [ "$LIBUNWIND" ]; then echo " $SHLIBUNWIND_INSTALL" \ | sed -e "s%@shlib_base_name@%$shlibunwind_base_name%g" \ -e "s%@shlib_so_name@%$shlibunwind_base_name%g" \ - -e "s%@shlib_dir@%%g" \ -e "s%@shlib_slibdir_qual@%%g" libunwinddir='$(DESTDIR)$(slibdir)' echo ' $(INSTALL_DATA)' ${dir}/libunwind.a ${libunwinddir}/ |