commit
0338388090
@ -440,7 +440,7 @@ rt_object_t rt_object_find(const char *name, rt_uint8_t type)
|
|||||||
{
|
{
|
||||||
object = rt_list_entry(node, struct rt_object, list);
|
object = rt_list_entry(node, struct rt_object, list);
|
||||||
if ((rt_strncmp(object->name, name, module_name_length) == 0) &&
|
if ((rt_strncmp(object->name, name, module_name_length) == 0) &&
|
||||||
module_name_length == RT_NAME_MAX || object->name[module_name_length] == '\0')
|
(module_name_length == RT_NAME_MAX || object->name[module_name_length] == '\0'))
|
||||||
{
|
{
|
||||||
/* get module */
|
/* get module */
|
||||||
module = (struct rt_module*)object;
|
module = (struct rt_module*)object;
|
||||||
|
@ -33,7 +33,7 @@ def generate(env):
|
|||||||
env['AR'] = 'true'
|
env['AR'] = 'true'
|
||||||
env['LINK'] = 'true'
|
env['LINK'] = 'true'
|
||||||
|
|
||||||
env['CFLAGS'] = ['-fsyntax-only', '-Wall', '-Wno-invalid-source-encoding']
|
env['CFLAGS'] = ['-fsyntax-only', '-Wall', '-Wno-invalid-source-encoding', '-m32']
|
||||||
env['LINKFLAGS'] = '-Wl,--gc-sections'
|
env['LINKFLAGS'] = '-Wl,--gc-sections'
|
||||||
env['ARFLAGS'] = '-rc'
|
env['ARFLAGS'] = '-rc'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user