From 5386672aa2234ced6e12c81dd73e6b462b5193f7 Mon Sep 17 00:00:00 2001 From: vl Date: Wed, 12 May 2010 16:01:40 +0200 Subject: [PATCH] Changed: make it compile in pure static --- .../src/sound/driver/openal/sound_driver_al.cpp | 10 ++++++++++ code/ryzom/client/src/Makefile | 6 ++++-- code/ryzom/client/src/interface_v3/lua_ihm.cpp | 17 +++++++++++++++++ 3 files changed, 31 insertions(+), 2 deletions(-) diff --git a/code/nel/src/sound/driver/openal/sound_driver_al.cpp b/code/nel/src/sound/driver/openal/sound_driver_al.cpp index f8ba083be..acfe77576 100644 --- a/code/nel/src/sound/driver/openal/sound_driver_al.cpp +++ b/code/nel/src/sound/driver/openal/sound_driver_al.cpp @@ -140,9 +140,16 @@ __declspec(dllexport) ISoundDriver::TDriver NLSOUND_getDriverType() #elif defined (NL_OS_UNIX) +#ifndef NL_STATIC extern "C" { +#endif + +#ifdef NL_STATIC +ISoundDriver* createISoundDriverInstanceOpenAl(ISoundDriver::IStringMapperProvider *stringMapper) +#else ISoundDriver* NLSOUND_createISoundDriverInstance(ISoundDriver::IStringMapperProvider *stringMapper) +#endif { return new CSoundDriverAL(stringMapper); } @@ -151,7 +158,10 @@ uint32 NLSOUND_interfaceVersion () { return ISoundDriver::InterfaceVersion; } + +#ifndef NL_STATIC } +#endif #endif // NL_OS_UNIX diff --git a/code/ryzom/client/src/Makefile b/code/ryzom/client/src/Makefile index 5bd09fa01..bac8ed4a1 100644 --- a/code/ryzom/client/src/Makefile +++ b/code/ryzom/client/src/Makefile @@ -31,9 +31,9 @@ LDFLAGS = $(WWWLDFLAGS) $(LUALDFLAGS) $(LD_FLAGS_CMN) \ -lclient_sheets \ -lseven_zip \ -lgame_share \ - -lnel3d \ + -Wl,--start-group -lnel_drv_opengl -lnel3d -Wl,--end-group \ + -Wl,--start-group -lnel_drv_openal -lnelsnd -Wl,--end-group \ -lnelpacs \ - -lnelsnd \ -lnelligo \ -lnelgeorges \ -lnelnet \ @@ -45,7 +45,9 @@ LDFLAGS = $(WWWLDFLAGS) $(LUALDFLAGS) $(LD_FLAGS_CMN) \ -lrt \ -ldl \ -lluabind \ + -lopenal \ -lcurl \ + -lGL \ -lX11 ############################################################################# diff --git a/code/ryzom/client/src/interface_v3/lua_ihm.cpp b/code/ryzom/client/src/interface_v3/lua_ihm.cpp index 2d77d8463..11d7da180 100644 --- a/code/ryzom/client/src/interface_v3/lua_ihm.cpp +++ b/code/ryzom/client/src/interface_v3/lua_ihm.cpp @@ -26,6 +26,23 @@ # endif #endif +// to get rid of you_must_not_use_assert___use_nl_assert___read_debug_h_file messages +#include +#undef assert +#define assert nlassert +#include +#if LUABIND_MAX_ARITY == 10 +# define LUABIND_VERSION 07 +#elif LUABIND_MAX_ARITY == 5 +# define LUABIND_VERSION 06 +#else +# pragma error("luabind version not recognized") +#endif +#if LUABIND_VERSION == 07 +# include +#endif + + #include "lua_ihm.h" #include "reflect.h" #include "action_handler.h"