Changeset 6044:5510b69cf78c in roaraudio


Ignore:
Timestamp:
11/10/14 12:49:26 (5 years ago)
Author:
phi
Branch:
default
Message:

Correct output of roar-config --cflags and --libs

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r6042 r6044  
    77          as they are replaced by SLFI filters 'random' and 'strobe'. 
    88        * Changed ABI version of roard because of updates on light_dmxchannel_*(). 
     9        * Correct output of roar-config --cflags and --libs (pr1) 
    910 
    1011v. 1.0beta11 - Tue Jan 21 2014 21:04 CET 
  • roarclients/roar-config.c

    r5961 r6044  
    222222 const char * product = NULL; 
    223223 const char * provider = NULL; 
     224 char * path; 
    224225 int i, h; 
    225226 int cflags = 0; 
     
    286287  case NORMAL: 
    287288    if ( cflags || libs ) { 
    288      if ( cflags ) 
     289     if ( cflags ) { 
     290      path = roar_libroar_get_path("prefix-inc", null_as_universal, product, provider); 
     291      if (path != NULL) { 
     292       _strcat(buf, "-I"); 
     293       _strcat(buf, path); 
     294       _strcat(buf, " "); 
     295       roar_mm_free(path); 
     296      } 
    289297      _strcat(buf, flags_ptr->cflags); 
    290  
    291      if ( libs ) 
     298     } 
     299 
     300     if ( libs ) { 
     301      path = roar_libroar_get_path("prefix-lib", null_as_universal, product, provider); 
     302      if (path != NULL) { 
     303       _strcat(buf, "-L"); 
     304       _strcat(buf, path); 
     305       _strcat(buf, " "); 
     306       roar_mm_free(path); 
     307      } 
    292308      _strcat(buf, flags_ptr->libs); 
     309     } 
    293310 
    294311     puts(buf); 
Note: See TracChangeset for help on using the changeset viewer.