Solving linking problem on Linux (similar to https://www.nsnam.org/bugzilla/show_bug.cgi?id=1292)

This commit is contained in:
Alexander Afanasyev committed 2013-03-11 20:16:01 -07:00
1 parent 5c66f9b5f8
commit 8e989d2337
1 file changed
+5
+5
View File
@@ -56,6 +56,11 @@ def configure(conf):
if conf.env["CXX"] == ["clang++"]:
conf.env.append_value('CXXFLAGS', ['-fcolor-diagnostics'])
if conf.env.DEST_BINFMT == 'elf':
# All ELF platforms are impacted but only the gcc compiler has a flag to fix it.
if 'gcc' in (conf.env.CXX_NAME, conf.env.CC_NAME):
conf.env.append_value ('SHLIB_MARKER', '-Wl,--no-as-needed')
if conf.options.logging:
conf.define ('NS3_LOG_ENABLE', 1)
conf.define ('NS3_ASSERT_ENABLE', 1)