Changeset 36 for sources


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.

Location:
sources/src
Files:
2 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);
  • sources/src/global_functions.cc

    r33 r36  
    229229  sprintf(lib_absolutepath, "/tmp/%s.so", base_name);
    230230#elif defined(CONFIG_OS_LINUX)
    231   sprintf(lib_absolutepath, "/tmp/%s.so", base_name);
     231  sprintf(lib_absolutepath, "/tmp/.libs/%s.so.0", base_name);
    232232#else
    233233  cerr << "ERROR\n"; exit (126);
Note: See TracChangeset for help on using the changeset viewer.