Use LDADD to add -lgcc to the end of linker command line. Using LDFLAGS

puts it before library's object files, making the whole constuct useless.
This commit is contained in:
kan 2007-05-19 16:38:39 +00:00
parent f09057052a
commit b9acdd0d23

View File

@ -23,7 +23,8 @@ PRECIOUSLIB=
#
# Only link with static libgcc.a (no libgcc_eh.a).
#
LDFLAGS+= -nodefaultlibs -lgcc
LDFLAGS+= -nodefaultlibs
LDADD+= -lgcc
# Define (empty) variables so that make doesn't give substitution
# errors if the included makefiles don't change these: