Browse code

Use SLIBSUF instead of .so, as a more generic dynamic library suffix.

Originally committed as revision 25321 to svn://svn.ffmpeg.org/ffmpeg/trunk

VĂ­ctor Paesa authored on 2010/10/03 18:49:36
Showing 2 changed files
... ...
@@ -3223,6 +3223,7 @@ cat > $TMPH <<EOF
3223 3223
 #define ASMALIGN(ZEROBITS) ".p2align " #ZEROBITS "\\n\\t"
3224 3224
 #define EXTERN_PREFIX "${extern_prefix}"
3225 3225
 #define EXTERN_ASM ${extern_prefix}
3226
+#define SLIBSUF "$SLIBSUF"
3226 3227
 EOF
3227 3228
 
3228 3229
 test -n "$malloc_prefix" &&
... ...
@@ -192,7 +192,7 @@ static void *load_path(AVFilterContext *ctx, const char *prefix, const char *nam
192 192
 {
193 193
     char path[1024];
194 194
 
195
-    snprintf(path, sizeof(path), "%s%s.so", prefix, name);
195
+    snprintf(path, sizeof(path), "%s%s%s", prefix, name, SLIBSUF);
196 196
     av_log(ctx, AV_LOG_DEBUG, "Looking for frei0r effect in '%s'\n", path);
197 197
     return dlopen(path, RTLD_NOW|RTLD_LOCAL);
198 198
 }