get gcc runtime lib from where gcc thinks they are
authorEdouard Tisserant 7BB06627 <edouard.tisserant@gmail.com>
Sun, 15 Jan 2017 22:56:46 +0100
changeset 19 4cd3af22787e
parent 18 efd809f369c6
child 20 e3306f5d0b89
get gcc runtime lib from where gcc thinks they are
Makefile
--- a/Makefile	Sun Jan 15 22:22:32 2017 +0100
+++ b/Makefile	Sun Jan 15 22:56:46 2017 +0100
@@ -36,7 +36,7 @@
 
 
 CROSS_COMPILE=i686-w64-mingw32
-CROSS_COMPILE_LIBS_DIR=/usr/lib/gcc/$(CROSS_COMPILE)/6.1-win32
+CROSS_COMPILE_LIBS_DIR=$(shell dirname $(shell $(CROSS_COMPILE)-gcc -print-libgcc-file-name))
 CC=$(CROSS_COMPILE)-gcc
 CXX=$(CROSS_COMPILE)-g++