mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc -r command line.
authorJakub Jelinek <jakub@redhat.com>
Tue, 5 Mar 2002 18:09:29 +0000 (19:09 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 5 Mar 2002 18:09:29 +0000 (19:09 +0100)
* mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
-r command line.  Don't hide any symbols if not building
shared libgcc.

From-SVN: r50321

gcc/ChangeLog
gcc/mklibgcc.in

index fac38921ebd61ab21fca63f18943b573abc76ee5..2bb64d1cadd9a2b3fbe8591ea9c3dd63e2f7f3ce 100644 (file)
@@ -1,3 +1,9 @@
+2002-03-05  Jakub Jelinek  <jakub@redhat.com>
+
+       * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
+       -r command line.  Don't hide any symbols if not building
+       shared libgcc.
+
 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
 
        * cfg.c (dump_flow_info): Warn about profile mismatches.
index 77bdf00f16e89dbf09aed28b18646911197c34d9..3d743b15a39d05909107f46353bfb80dd6f0211f 100644 (file)
@@ -272,14 +272,14 @@ for ml in $MULTILIBS; do
 
   libgcc_a_objs="$libgcc_objs $libgcc_st_objs"
 
-  if [ "@libgcc_visibility@" = yes ]; then
+  if [ "@libgcc_visibility@" = yes -a "$SHLIB_LINK" ]; then
     libgcc_a_objs=
     echo ""
     for o in $libgcc_objs $libgcc_st_objs; do
       # .oS objects will have all non-local symbol definitions .hidden
       oS=`echo ${o} | sed s~${objext}'$~.oS~g'`
       echo "${oS}: stmp-dirs ${o}"
-      echo '   @$(NM_FOR_TARGET) '${SHLIB_NM_FLAGS} ${o}' | $(AWK) '\''NF == 3 { print ".hidden", $$3 }'\'' | $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -r -nostdinc -nostdlib -o $@ '${o}' -xassembler -'
+      echo '   @$(NM_FOR_TARGET) '${SHLIB_NM_FLAGS} ${o}' | $(AWK) '\''NF == 3 { print "\t.hidden", $$3 }'\'' | $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) '${flags}' -r -nostdinc -nostdlib -o $@ '${o}' -xassembler -'
       libgcc_a_objs="${libgcc_a_objs} ${oS}"
     done
   fi