From 9bda6cdefcb352001d1d774d6e817bd92a3135c8 Mon Sep 17 00:00:00 2001 From: Kostas Nakos Date: Sun, 2 Dec 2007 12:11:59 +0000 Subject: fixes for cygwin build. In particular: move the _mak_plugins environment after LDFLAGS has been defined in config.mk, to allow building in case of non-standard lib paths (thru LDFLAGS). Also, silenced a nasm warning. svn-id: r29701 --- configure | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'configure') diff --git a/configure b/configure index b526869e39..079932e21a 100755 --- a/configure +++ b/configure @@ -308,7 +308,7 @@ CheckNASM() else case $_host_os in mingw* | cygwin*) - NASMFLAGS="-f win32" + NASMFLAGS="-f win32 -w-orphan-labels" ;; darwin*) NASMFLAGS="-f macho" @@ -1220,7 +1220,7 @@ POST_OBJS_FLAGS := LIBS += -ldl ' ;; - *mingw32*) + *mingw32* | cygwin*) _def_plugin=' #define PLUGIN_PREFIX "" #define PLUGIN_SUFFIX ".dll" @@ -1231,7 +1231,7 @@ PLUGIN_PREFIX := PLUGIN_SUFFIX := .dll PLUGIN_EXTRA_DEPS = $(EXECUTABLE) CXXFLAGS += -DDYNAMIC_MODULES -PLUGIN_LDFLAGS := -shared ./libscummvm.a $(LIBS) +PLUGIN_LDFLAGS := -shared ./libscummvm.a $(LIBS) $(LDFLAGS) PRE_OBJS_FLAGS := -Wl,--whole-archive POST_OBJS_FLAGS := -Wl,--export-all-symbols -Wl,--no-whole-archive -Wl,--out-implib,./libscummvm.a ' @@ -1645,8 +1645,6 @@ BINDIR := $_bindir MANDIR := $_mandir DATADIR := $_datadir -$_mak_plugins - $_config_mk_data INCLUDES += $INCLUDES @@ -1654,6 +1652,8 @@ OBJS += $OBJS DEFINES += $DEFINES LDFLAGS += $LDFLAGS +$_mak_plugins + SAVED_CONFIGFLAGS := $SAVED_CONFIGFLAGS SAVED_LDFLAGS := $SAVED_LDFLAGS SAVED_CXX := $SAVED_CXX -- cgit v1.2.3