aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNils Durner <durner@gnunet.org>2010-01-16 22:54:34 +0000
committerNils Durner <durner@gnunet.org>2010-01-16 22:54:34 +0000
commitbc2a106cb71cca45ee66e761df3a0200a1ccb0d1 (patch)
treea662ed1758f2dc9f4ac33f3a28c79e9c4c7f5fdf
parent01db3836bb7f44e127ceed62cfdb15265f97a04c (diff)
downloadlibextractor-bc2a106cb71cca45ee66e761df3a0200a1ccb0d1.tar.gz
libextractor-bc2a106cb71cca45ee66e761df3a0200a1ccb0d1.zip
ignore static libs
-rw-r--r--src/main/extractor.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/extractor.c b/src/main/extractor.c
index 9024a0c..b9e04ef 100644
--- a/src/main/extractor.c
+++ b/src/main/extractor.c
@@ -558,7 +558,9 @@ load_plugins_from_dir (void *cls,
558 if (ent->d_name[0] == '.') 558 if (ent->d_name[0] == '.')
559 continue; 559 continue;
560 if ( (NULL != (la = strstr (ent->d_name, ".la"))) && 560 if ( (NULL != (la = strstr (ent->d_name, ".la"))) &&
561 (la[3] == '\0') ) 561 (la[3] == '\0') ||
562 (NULL != (la = strstr (ent->d_name, ".a"))) &&
563 (la[2] == '\0'))
562 continue; /* only load '.so' and '.dll' */ 564 continue; /* only load '.so' and '.dll' */
563 565
564 sym_name = strstr (ent->d_name, "_"); 566 sym_name = strstr (ent->d_name, "_");