Mercurial > hg > vamp-plugin-sdk
changeset 368:0ca8e104e8b1
Starting to update win32/mingw cross-compile
author | Chris Cannam |
---|---|
date | Mon, 04 Aug 2014 17:07:39 +0100 |
parents | 57cc0f0c20ff |
children | ff78d47310af 29a73259f59a |
files | build/Makefile.mingw32 |
diffstat | 1 files changed, 9 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- 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