78b5e8e001
build/release/librlvm.a(scenario.o): In function `libreallive::Script::Script(libreallive::Header const&, char const*, unsigned long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool, libreallive::compression::XorKey const*)': src/libreallive/scenario.cc:(.text._ZN11libreallive6ScriptC2ERKNS_6HeaderEPKcmRKNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEbPKNS_11compression6XorKeyE+0x496): undefined reference to `libintl_gettext' src/libreallive/scenario.cc:(.text._ZN11libreallive6ScriptC2ERKNS_6HeaderEPKcmRKNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEbPKNS_11compression6XorKeyE+0x66c): undefined reference to `libintl_gettext' build/release/librlvm.a(serialization_global.o): In function `Serialization::saveGlobalMemory(RLMachine&)': src/machine/serialization_global.cc:(.text._ZN13Serialization16saveGlobalMemoryER9RLMachine+0xe8): undefined reference to `libintl_gettext' build/release/librlvm.a(serialization_local.o): In function `Serialization::saveGameForSlot(RLMachine&, int)': src/machine/serialization_local.cc:(.text._ZN13Serialization15saveGameForSlotER9RLMachinei+0x7b): undefined reference to `libintl_gettext' build/release/librlvm.a(serialization_local.o): In function `void (anonymous namespace)::checkInFileOpened<boost::filesystem::basic_ifstream<char, std::__1::char_traits<char> > >(boost::filesystem::basic_ifstream<char, std::__1::char_traits<char> >&, boost::filesystem::path const&)': src/machine/serialization_local.cc:(.text._ZN12_GLOBAL__N_117checkInFileOpenedIN5boost10filesystem14basic_ifstreamIcNSt3__111char_traitsIcEEEEEEvRT_RKNS2_4pathE+0x45): undefined reference to `libintl_gettext'
46 lines
1.1 KiB
Text
46 lines
1.1 KiB
Text
--- SConstruct~
|
|
+++ SConstruct
|
|
@@ -19,7 +19,12 @@ AddOption('--fullstatic', action='store_
|
|
|
|
# Set libraries used by all configurations and all binaries in rlvm.
|
|
env = Environment(
|
|
+ ENV=os.environ,
|
|
tools = ["default", "rlvm"],
|
|
+ **dict((k, v.split()) for k, v in ARGUMENTS.iteritems())
|
|
+)
|
|
+
|
|
+env.Append(
|
|
|
|
LIBS = ["z"],
|
|
|
|
@@ -278,6 +275,7 @@ if not config.CheckGuichan():
|
|
# Get the configuration from sdl and freetype
|
|
env.ParseConfig("sdl-config --cflags")
|
|
env.ParseConfig("freetype-config --cflags --libs")
|
|
+config.CheckLibWithHeader('intl', 'libintl.h', "cpp")
|
|
|
|
env = config.Finish()
|
|
|
|
@@ -314,7 +311,6 @@ if GetOption('release'):
|
|
# Now add release optimizations to the environment
|
|
env.Append(
|
|
CPPFLAGS = [
|
|
- "-Os",
|
|
"-DNDEBUG",
|
|
"-DBOOST_DISABLE_ASSERTS"
|
|
]
|
|
@@ -360,13 +356,7 @@ elif GetOption('pprof'):
|
|
"profiler"]
|
|
)
|
|
else:
|
|
- # Add debugging flags to all binaries here
|
|
- env.Append(
|
|
- CPPFLAGS = [
|
|
- "-g",
|
|
- "-O0"
|
|
- ]
|
|
- )
|
|
+ pass
|
|
|
|
# Cross platform core of rlvm. Produces librlvm.a and libsystem_sdl.a
|
|
env.SConscript("SConscript",
|