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:
parent
e45907c90e
commit
0212104ba9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=169771
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user