diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-05 18:09:29 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-05 18:09:29 +0000 |
commit | a826398dc803aeeadd0eb057b0ad0383507d8bd8 (patch) | |
tree | d7808a68a85290e6c831bc6389d81637ab102a11 /gcc/mklibgcc.in | |
parent | a2e423212fcde0a5659145ea2ac4de626297fc14 (diff) | |
download | gcc-a826398dc803aeeadd0eb057b0ad0383507d8bd8.tar.gz |
* mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
-r command line. Don't hide any symbols if not building
shared libgcc.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50321 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/mklibgcc.in')
-rw-r--r-- | gcc/mklibgcc.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/mklibgcc.in b/gcc/mklibgcc.in index 77bdf00f16e..3d743b15a39 100644 --- a/gcc/mklibgcc.in +++ b/gcc/mklibgcc.in @@ -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 |