summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/mklibgcc.in16
2 files changed, 12 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9bd59b1bba9..8ea5a5f9c7b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2002-02-28 Jakub Jelinek <jakub@redhat.com>
+
+ * mklibgcc.in: Don't use GNU make extension.
+
2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
* c-parse.in (STATIC): New terminal.
diff --git a/gcc/mklibgcc.in b/gcc/mklibgcc.in
index 32637aea56c..77bdf00f16e 100644
--- a/gcc/mklibgcc.in
+++ b/gcc/mklibgcc.in
@@ -273,15 +273,15 @@ for ml in $MULTILIBS; do
libgcc_a_objs="$libgcc_objs $libgcc_st_objs"
if [ "@libgcc_visibility@" = yes ]; then
- libgcc_a_objs=`echo "${libgcc_a_objs} " | sed s~${objext}' ~.oS ~g'`
-
- # .oS objects will have all non-local symbol definitions .hidden
+ libgcc_a_objs=
echo ""
- echo "$libgcc_a_objs: libgcc/${dir}/%.oS: libgcc/${dir}/%${objext}"
- echo " @\$(NM_FOR_TARGET) $SHLIB_NM_FLAGS \$^" \\
- echo " | \$(AWK) 'NF == 3 { print \".hidden\", \$\$3 }'" \\
- echo ' | $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -Wl,-r -nostdinc' \\
- echo ' -nostdlib -o $@ $^ -xassembler -'
+ 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 -'
+ libgcc_a_objs="${libgcc_a_objs} ${oS}"
+ done
fi
echo ""