Package: libapache-mod-gzip
Version: 1.3.26.1a-8
Severity: serious
Tags: patch

libapache-mod-gzip fails to build because an unrecognized command line
option is passed to gcc because the flags passed via -Wc are separated
by commas:

> /usr/bin/apxs -Wc,-Wall,-O3,-fomit-frame-pointer,-pipe -c mod_gzip.c 
> mod_gzip_debug.c mod_gzip_compress.c -o mod_gzip.so
> gcc -DLINUX=22 -DEAPI -DTARGET="apache" -DHAVE_SET_DUMPABLE 
> -DDB_DBM_HSEARCH=1 -DDEV_RANDOM=/dev/random -DUSE_HSREGEX -O1  -g -Wall 
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fPIC -DSHARED_MODULE 
> -I/usr/include/apache-1.3 -Wall,-O3,-fomit-frame-pointer,-pipe  -c mod_gzip.c
> cc1: error: unrecognized command line option 
> "-Wall,-O3,-fomit-frame-pointer,-pipe"
> apxs:Break: Command failed with rc=1

The attached patch uses a separate -Wc option for each GCC option,
which fixes this problem.

-- 
Matt
diff -u libapache-mod-gzip-1.3.26.1a/Makefile 
libapache-mod-gzip-1.3.26.1a/Makefile
--- libapache-mod-gzip-1.3.26.1a/Makefile
+++ libapache-mod-gzip-1.3.26.1a/Makefile
@@ -2,7 +2,7 @@
 RM=/bin/rm
 
 build:
-       $(APXS) -Wc,-Wall,-O3,-fomit-frame-pointer,-pipe -c mod_gzip.c 
mod_gzip_debug.c mod_gzip_compress.c -o mod_gzip.so
+       $(APXS) -Wc,-Wall -Wc,-O3 -Wc,-fomit-frame-pointer -Wc,-pipe -c 
mod_gzip.c mod_gzip_debug.c mod_gzip_compress.c -o mod_gzip.so
 
 install:
        install -s -m 644 mod_gzip.so $(DESTDIR)/usr/lib/apache/1.3

Attachment: signature.asc
Description: Digital signature

Reply via email to