aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/buildsys/win
diff options
context:
space:
mode:
Diffstat (limited to 'externals/grill/flext/buildsys/win')
-rw-r--r--externals/grill/flext/buildsys/win/gnumake-mingw-ext.inc2
-rw-r--r--externals/grill/flext/buildsys/win/gnumake-mingw.inc2
-rw-r--r--externals/grill/flext/buildsys/win/max/gnumake-mingw.inc4
3 files changed, 5 insertions, 3 deletions
diff --git a/externals/grill/flext/buildsys/win/gnumake-mingw-ext.inc b/externals/grill/flext/buildsys/win/gnumake-mingw-ext.inc
index 8044d19b..3a998a5d 100644
--- a/externals/grill/flext/buildsys/win/gnumake-mingw-ext.inc
+++ b/externals/grill/flext/buildsys/win/gnumake-mingw-ext.inc
@@ -32,7 +32,7 @@ $(TARGETPATH)/%.o : $(SRCDIR)/%.c
$(TARGET) :: $(TARGETPATH)
$(TARGET) :: $(COBJS) $(CPPOBJS)
- $(CXX) $(LDFLAGS) $(subst \,/,$(LIBPATH)) -o $(subst /,\,$@) $(subst /,\,$(COBJS) $(CPPOBJS) $(LIBS))
+ $(CXX) $(LDFLAGS) $(subst \,/,$(LIBPATH)) -o $(subst /,\,$@) $(subst /,\,$(COBJS) $(CPPOBJS) $(LIBS) $(SYSLIBS))
-strip --strip-unneeded $@
##############################################
diff --git a/externals/grill/flext/buildsys/win/gnumake-mingw.inc b/externals/grill/flext/buildsys/win/gnumake-mingw.inc
index 5f9e3633..82ee4381 100644
--- a/externals/grill/flext/buildsys/win/gnumake-mingw.inc
+++ b/externals/grill/flext/buildsys/win/gnumake-mingw.inc
@@ -7,7 +7,7 @@ TARGET=$(TARGETPATH)\$(OUTNAME).$(EXT)
##############################################
CFLAGS += -mms-bitfields -mno-cygwin
-LDFLAGS += -shared -mno-cygwin
+LDFLAGS += -shared -mno-cygwin
##############################################
diff --git a/externals/grill/flext/buildsys/win/max/gnumake-mingw.inc b/externals/grill/flext/buildsys/win/max/gnumake-mingw.inc
index 26e234c8..28685d7e 100644
--- a/externals/grill/flext/buildsys/win/max/gnumake-mingw.inc
+++ b/externals/grill/flext/buildsys/win/max/gnumake-mingw.inc
@@ -2,9 +2,11 @@ DEFS += -DFLEXT_SYS=1
# fpack-struct should align to 2 bytes... can't specify that...
CFLAGS += -DWINVER=0x0501 -D_WIN32_WINNT=0x501
+# suppress multiple symbol errors
+LDFLAGS += -Wl,--allow-multiple-definition
INCPATH += -I$(MAXSDKPATH)/max-includes -I$(MAXSDKPATH)/msp-includes
LIBPATH += -L$(MAXSDKPATH)/max-includes -L$(MAXSDKPATH)/msp-includes
# these are both in MAXSDKPATH
-LIBS += -lMaxAPI -lMaxAudio
+SYSLIBS += -lMaxAPI -lMaxAudio