Changeset 36 for sources/src/gen_code.cc


Ignore:
Timestamp:
Jul 4, 2009, 4:49:35 PM (15 years ago)
Author:
joel.porquet@…
Message:

Make dynamic compile&link work on x86 32 bits.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sources/src/gen_code.cc

    r35 r36  
    400400  char target_name[128];
    401401  char source_name[128];
    402   sprintf (target_name, "%s.o", base_name);
     402  sprintf (target_name, "%s.lo", base_name);
    403403  sprintf (source_name, "%s.cc", base_name);
    404404 
     
    451451  /* LINK */
    452452  /* **** */
    453   sprintf (target_name, "%s.so", base_name);
     453  sprintf (target_name, "%s.la", base_name);
    454454
    455455#ifdef CONFIG_OS_LINUX
    456456  sprintf (source_name, "%s.lo", base_name);
    457   sprintf(compil_str, "(cd %s ; pwd ; libtool --mode=link %s %s -shared -rdynamic -o %s %s)", /* -L. -L%s/lib-%s */
     457  sprintf(compil_str, "(cd %s ; pwd ; libtool --mode=link %s %s -module -shared -o %s %s -rpath /tmp)", /* -L. -L%s/lib-%s */
    458458           temporary_dir, compiler, casc_cflags, /*systemc_dir, target_arch,*/
    459459     target_name, source_name);
Note: See TracChangeset for help on using the changeset viewer.