# HG changeset patch # User Chris Cannam # Date 1407168459 -3600 # Node ID 0ca8e104e8b10db63ca3e7d75927fa9c10232bae # Parent 57cc0f0c20ff047192660848ac3e1377cb30bf96 Starting to update win32/mingw cross-compile diff -r 57cc0f0c20ff -r 0ca8e104e8b1 build/Makefile.mingw32 --- a/build/Makefile.mingw32 Wed Jun 25 13:58:26 2014 +0100 +++ b/build/Makefile.mingw32 Mon Aug 04 17:07:39 2014 +0100 @@ -61,10 +61,12 @@ # Tools selection # -CXX = i586-mingw32msvc-g++ -LD = i586-mingw32msvc-g++ -AR = i586-mingw32msvc-ar -RANLIB = i586-mingw32msvc-ranlib +TOOLPREFIX ?= i586-mingw32msvc- +CXX = $(TOOLPREFIX)g++ +CC = $(TOOLPREFIX)gcc +LD = $(TOOLPREFIX)g++ +AR = $(TOOLPREFIX)ar +RANLIB = $(TOOLPREFIX)ranlib # Compile flags # @@ -88,7 +90,7 @@ # Flags required to tell the compiler to create a dynamically loadable object # -DYNAMIC_LDFLAGS = --static-libgcc -shared -Wl,-Bsymbolic +DYNAMIC_LDFLAGS = -shared -Wl,-Bsymbolic # Flags for building specific plugin and library targets. We need to # tell the linker the formal name for the library, and for plugins we @@ -96,8 +98,8 @@ # hidden except for the public entry point (making for a tidier library). # PLUGIN_LDFLAGS = $(DYNAMIC_LDFLAGS) -Wl,--version-script=build/vamp-plugin.map -SDK_DYNAMIC_LDFLAGS = $(DYNAMIC_LDFLAGS) -Wl,-soname=$(INSTALL_SDK_LIBNAME) -HOSTSDK_DYNAMIC_LDFLAGS = $(DYNAMIC_LDFLAGS) -Wl,-soname=$(INSTALL_HOSTSDK_LIBNAME) +SDK_DYNAMIC_LDFLAGS = $(DYNAMIC_LDFLAGS) +HOSTSDK_DYNAMIC_LDFLAGS = $(DYNAMIC_LDFLAGS) ### End of user-serviceable parts