Skip to content
Snippets Groups Projects
Commit 4688d989 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

AR: Inhibit warning LNK4221.

This warning is generated when linking a *.lib with some empty
object files.
parent 1447a104
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,12 @@ case "`echo $CC`" in ...@@ -33,7 +33,12 @@ case "`echo $CC`" in
*d*) exit 1 ;; *d*) exit 1 ;;
*x*) exit 1 ;; *x*) exit 1 ;;
*q*|*r*) *q*|*r*)
do_cmd lib -nologo "-OUT:`fixpath $OUTPUT`" `fixpath $@` # NB: Inhibits warning
# LNK4221: no public symbols found; archive
# member will be inaccessible
# Which is generated when linking a *.lib with some empty
# object files (like eg modules/system/syslog.o).
do_cmd lib -nologo "-ignore:4221" "-OUT:`fixpath $OUTPUT`" `fixpath $@`
# Copy *.a file to *.lib to work-around warning D9024. # Copy *.a file to *.lib to work-around warning D9024.
winname="`echo $OUTPUT | sed -e 's/^lib\(.*\)\.a/\1.lib/'`" winname="`echo $OUTPUT | sed -e 's/^lib\(.*\)\.a/\1.lib/'`"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment