Ticket #13901: patch-gutils_dynamic.c.diff

File patch-gutils_dynamic.c.diff, 495 bytes (added by blb@…, 17 years ago)

files/patch-gutils_dynamic.c.diff

  • gutils/dynamic.c

    old new  
    143143    if (( lib!=NULL && lib!=(void *) -1) || name==NULL || *name=='/' )
    144144return( lib );
    145145
    146     temp = galloc( strlen("/sw/lib/") + strlen(name) +1 );
    147     strcpy(temp,"/sw/lib/");
     146    temp = galloc( strlen("@@PREFIX@@/lib/") + strlen(name) +1 );
     147    strcpy(temp,"@@PREFIX@@/lib/");
    148148    strcat(temp,name);
    149149    lib = dlopen(temp,flags);
    150150    free(temp);