[Ns-bugs] [Bug 1136] New: --enable-static is not working on ppc linux platform
code@nsnam.ece.gatech.edu
code at nsnam.ece.gatech.edu
Wed May 11 12:08:03 PDT 2011
https://www.nsnam.org/bugzilla/show_bug.cgi?id=1136
Summary: --enable-static is not working on ppc linux platform
Product: ns-3
Version: ns-3-dev
Platform: Mac powerpc
OS/Version: Linux
Status: NEW
Severity: critical
Priority: P5
Component: general
AssignedTo: ns-bugs at isi.edu
ReportedBy: baofenye at gmail.com
Estimated Hours: 0.0
./waf configure --enable-static
...
...
...
Static build : enabled
...
...
...
The report says static build is enabled, but the following python codes in
wscript never catch the case for ppc-linux to set env['ENABLE_STATIC_NS3'] =
True, and after running ./waf build it still build shared ns3 libraries.
If I set env['ENABLE_STATIC_NS3'] = True by changing wscript, it works and
builds static libraries.
FY
********************************************************************************
wscript:
382
383 env['ENABLE_STATIC_NS3'] = False
384 if Options.options.enable_static:
385 if env['PLATFORM'].startswith('linux') and \
386 env['CXX_NAME'] in ['gcc', 'icc']:
387 if re.match('i[3-6]86', os.uname()[4]):
388 conf.report_optional_feature("static", "Static build",
True, '')
389 env['ENABLE_STATIC_NS3'] = True
390 elif os.uname()[4] == 'x86_64':
391 if env['ENABLE_PYTHON_BINDINGS'] and \
392 not
conf.check_compilation_flag('-mcmodel=large'):
393 conf.report_optional_feature("static", "Static
build", False,
394 "Can't enable static
builds because " + \
395 "no -mcmodel=large
compiler " \
396 "option. Try
--disable-python or upgrade your " \
397 "compiler to at
least gcc 4.3.x.")
398 else:
399 conf.report_optional_feature("static", "Static
build", True, '')
400 env['ENABLE_STATIC_NS3'] = True
401 elif env['CXX_NAME'] == 'gcc' and \
402 (env['PLATFORM'].startswith('darwin') or \
403 env['PLATFORM'].startswith('cygwin')):
404 conf.report_optional_feature("static", "Static build",
True, '')
405 env['ENABLE_STATIC_NS3'] = True
406 else:
407 conf.report_optional_feature("static", "Static build",
False,
408 "Unsupported platform")
409 else:
410 conf.report_optional_feature("static", "Static build", False,
411 "option --enable-static not
selected")
********************************************************************************
--
Configure bugmail: https://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Ns-bugs
mailing list