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
f09057052a
commit
b9acdd0d23
@ -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