summaryrefslogtreecommitdiffstats
path: root/src/elfcompress.c
diff options
context:
space:
mode:
authorUlf Hermann <[email protected]>2017-04-04 12:11:20 +0200
committerUlf Hermann <[email protected]>2017-05-08 12:20:44 +0000
commit8a0a36ab24007d8cdfe1bfcef2af400d61b363b5 (patch)
treeb7cbc8568fcebffa980e3946ec182a4396337687 /src/elfcompress.c
parent212c385b0274e42e15011d7c8431f570a399c25b (diff)
Make elfcompress compile on windows
The fnmatch implementation in gnulib is buggy and cannot understand ".?(z)debug*". We split it into two patterns. Change-Id: Ia70b56a9852b442344ebdd7f2a64ae52321411cf Reviewed-by: Christian Kandeler <[email protected]>
Diffstat (limited to 'src/elfcompress.c')
-rw-r--r--src/elfcompress.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/elfcompress.c b/src/elfcompress.c
index 6080db71..d1cef85b 100644
--- a/src/elfcompress.c
+++ b/src/elfcompress.c
@@ -135,7 +135,10 @@ parse_opt (int key, char *arg __attribute__ ((unused)),
if (type == T_UNSET)
type = T_COMPRESS_ZLIB;
if (patterns == NULL)
- add_pattern (".?(z)debug*");
+ {
+ add_pattern (".debug*");
+ add_pattern (".zdebug*");
+ }
break;
case ARGP_KEY_NO_ARGS: