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
This commit is contained in:
Kostas Nakos 2007-12-02 12:11:59 +00:00
parent 1cf6278fb1
commit 9bda6cdefc

10
configure vendored
View File

@ -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