r17702: test for gcc, and only enable gcc flags if true
authorAndrew Tridgell <tridge@samba.org>
Tue, 22 Aug 2006 07:20:59 +0000 (07:20 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:16:27 +0000 (14:16 -0500)
(This used to be commit 6495620d1819a50b79c77258ced9d0cadd25e129)

source4/lib/ldb/Makefile.in

index 5365d919aba017fb2e9bb3a27ad8aa92557b7e5c..d645a3ec4d360688906b159c4f28e7a489b51e48 100644 (file)
@@ -31,8 +31,7 @@ SQLITE3_FLAGS=-DHAVE_SQLITE3=1
 LDB_SQLITE3_OBJ=$(srcdir)/ldb_sqlite3/ldb_sqlite3.o
 endif
 
-CFLAGS1=-Wall -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith \
-       -Wcast-qual -Wcast-align -Wwrite-strings -g -I$(srcdir)/include -Iinclude -I$(srcdir) -I$(srcdir)/.. \
+CFLAGS1=-I$(srcdir)/include -Iinclude -I$(srcdir) -I$(srcdir)/.. \
        -I$(srcdir)/../tdb/include -I$(srcdir)/../tdb -I$(srcdir)/../talloc -DUSE_MMAP=1 $(LDAP_FLAGS)
 
 # enable the following two lines to build with gcov code coverage support