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:
Alexander Kabaev 2007-05-19 16:38:39 +00:00
parent e45907c90e
commit 0212104ba9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=169771

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: