/[ascend]/trunk/base/generic/compiler/importhandler.c
ViewVC logotype

Diff of /trunk/base/generic/compiler/importhandler.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1596 by jpye, Wed Jul 11 09:14:41 2007 UTC revision 1597 by jpye, Fri Aug 17 05:26:05 2007 UTC
# Line 106  char *importhandler_extlib_filename(cons Line 106  char *importhandler_extlib_filename(cons
106      char *buffer;      char *buffer;
107      buffer = ASC_NEW_ARRAY(char,PATH_MAX);      buffer = ASC_NEW_ARRAY(char,PATH_MAX);
108    
109  #if defined(ASC_SHLIBSUFFIX) && defined(ASC_SHLIBPREFIX)  #if defined(ASC_EXTLIBSUFFIX) && defined(ASC_EXTLIBPREFIX)
110      /*      /*
111          this is the preferred operation: SCons reports what the local system          this is the preferred operation: SCons reports what the local system
112          uses as its shared library file extension.          uses as its shared library file extension.
113      */      */
114      snprintf(buffer,PATH_MAX,"%s%s%s",ASC_SHLIBPREFIX,partialname,ASC_SHLIBSUFFIX);      snprintf(buffer,PATH_MAX,"%s%s%s",ASC_EXTLIBPREFIX,partialname,ASC_EXTLIBSUFFIX);
115  #else  #else
116  #ifdef __GNUC__  #ifdef __GNUC__
117  # warning "You should be using Use ASC_SHLIBPREFIX and ASC_SHLIBSUFFIX!"  # warning "You should be using Use ASC_EXTLIBPREFIX and ASC_EXTLIBSUFFIX!"
118  #endif  #endif
119      /**      /**
120          @DEPRECATED          @DEPRECATED
121    
122          If we don't have ASC_SHLIB-SUFFIX and -PREFIX then we can do some          If we don't have ASC_EXTLIB-SUFFIX and -PREFIX then we can do some
123          system-specific stuff here, but it's not as general.          system-specific stuff here, but it's not as general.
124      */      */
125  # ifdef __WIN32__  # ifdef __WIN32__
# Line 133  char *importhandler_extlib_filename(cons Line 133  char *importhandler_extlib_filename(cons
133  # elif defined(_SGI_SOURCE)  # elif defined(_SGI_SOURCE)
134      snprintf(buffer,PATH_MAX,"%s.so",partialname);      snprintf(buffer,PATH_MAX,"%s.so",partialname);
135  # else  # else
136  #  error "Unknown system type (please define ASC_SHLIBSUFFIX and ASC_SHLIBPREFIX)"  #  error "Unknown system type (please define ASC_EXTLIBSUFFIX and ASC_EXTLIBPREFIX)"
137  # endif  # endif
138  #endif  #endif
139    

Legend:
Removed from v.1596  
changed lines
  Added in v.1597

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22