Changeset e71b67 in git


Ignore:
Timestamp:
Feb 8, 2012, 3:46:28 PM (11 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
c8e03004b0f2c558839cdce7d26c2b7978191d54
Parents:
82a5b296b7dcefa87e681ee982aa9533df699d05
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2012-02-08 15:46:28+01:00
git-committer:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2012-02-08 15:49:55+01:00
Message:
fix: debug version used P_Procs from *.so, now uses *_g.so
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/mod_raw.cc

    r82a5b2 re71b67  
    121121static BOOLEAN warn_proc = FALSE;
    122122#ifndef DL_TAIL
    123 #define DL_TAIL "so"
     123#ifdef NDEBUG
     124#define DL_TAIL ".so"
     125#else
     126#define DL_TAIL "_g.so"
     127#endif
    124128#endif
    125129
     
    132136    const int binary_name_so_length = 3 + strlen(DL_TAIL) + strlen(binary_name) + strlen(DIR_SEPP) + strlen(bin_dir);
    133137    char* binary_name_so = (char *)omAlloc0( binary_name_so_length * sizeof(char) );
    134     snprintf(binary_name_so, binary_name_so_length, "%s%s%s.%s", bin_dir, DIR_SEPP, binary_name, DL_TAIL);
     138    snprintf(binary_name_so, binary_name_so_length, "%s%s%s%s", bin_dir, DIR_SEPP, binary_name, DL_TAIL);
    135139    handle = dynl_open(binary_name_so);
    136140    omFreeSize((ADDRESS)binary_name_so, binary_name_so_length * sizeof(char) );
     
    141145    const int binary_name_so_length = 3 + strlen(DL_TAIL) + strlen(binary_name);
    142146    char* binary_name_so = (char *)omAlloc0( binary_name_so_length * sizeof(char) );
    143     snprintf(binary_name_so, binary_name_so_length, "%s.%s", binary_name, DL_TAIL);
     147    snprintf(binary_name_so, binary_name_so_length, "%s%s", binary_name, DL_TAIL);
    144148
    145149    char* pp = (char *)omAlloc0( MAXPATHLEN * sizeof(char) );
     
    155159  if (handle == NULL && ! warn_handle)
    156160  {
    157       Warn("Could not find dynamic library: %s.%s", binary_name, DL_TAIL);
     161      Warn("Could not find dynamic library: %s%s", binary_name, DL_TAIL);
    158162      Warn("Error message from system: %s", dynl_error());
    159163      if (msg != NULL) Warn("%s", msg);
Note: See TracChangeset for help on using the changeset viewer.