changeset 72:45fc8c48af3b matthiasm-plugin

* Add -fno-exceptions and -static-libgcc to avoid library dependencies
author Chris Cannam
date Thu, 28 Oct 2010 09:15:35 +0200
parents b0cb793eab7d
children 3ef99d22ec6b
files Makefile.mingw
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile.mingw	Tue Oct 26 22:41:26 2010 +0900
+++ b/Makefile.mingw	Thu Oct 28 09:15:35 2010 +0200
@@ -8,12 +8,12 @@
 CC=gcc
 CXX=g++
 
-CFLAGS = -I$(VAMP_SDK_DIR) -Wall -O3 -ffast-math -msse -msse2 -mfpmath=sse -ftree-vectorize -fPIC
+CFLAGS = -I$(VAMP_SDK_DIR) -Wall -O3 -fno-exceptions -ffast-math -msse -msse2 -mfpmath=sse -ftree-vectorize -fPIC
 #CFLAGS = -g -I$(VAMP_SDK_DIR) -Wall -fPIC
 CXXFLAGS = -I$(VAMP_SDK_DIR) -I../boost_1_44_0 -Wall -fPIC
 PLUGIN_EXT = .dll
 PLUGIN = $(PLUGIN_LIBRARY_NAME)$(PLUGIN_EXT)
-LDFLAGS = -shared -Wl,-soname=$(PLUGIN) $(VAMP_SDK_DIR)/libvamp-sdk.a -Wl,--version-script=vamp-plugin.map 
+LDFLAGS = -shared -static-libgcc -Wl,-soname=$(PLUGIN) $(VAMP_SDK_DIR)/libvamp-sdk.a -Wl,--version-script=vamp-plugin.map 
 
 
 $(PLUGIN): $(PLUGIN_CODE_OBJECTS)