Commit a3d1527e authored by Martin Storsjö's avatar Martin Storsjö

contrib: lua: Make sure to use the right AR tool for the target

In many cases, the host AR tool just happens to work fine for e.g.
mingw cross builds, but clang targeting x86 mingw recently started
generating code that trips up GNU binutils ar, with cases like this:

ar: lcode.o: Unrecognized storage class 0 for .rdata symbol `__xmm@8000000000000
0008000000000000000'

Just consistently use the right AR tool for the target, just like
we do for RANLIB and STRIP.
parent b09ab2cf
...@@ -68,6 +68,7 @@ endif ...@@ -68,6 +68,7 @@ endif
-e 's%CC=%#CC=%' \ -e 's%CC=%#CC=%' \
-e 's%= *strip%=$(STRIP)%' \ -e 's%= *strip%=$(STRIP)%' \
-e 's%= *ranlib%= $(RANLIB)%' \ -e 's%= *ranlib%= $(RANLIB)%' \
-e 's%= *ar%= $(AR)%' \
Makefile Makefile
$(MOVE) $(MOVE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment