Use different CFLAGS for debug & package builds

This commit is contained in:
Michael Spang 2009-01-30 22:14:48 -05:00
parent cb8dd43d1d
commit 13876b123a
2 changed files with 8 additions and 3 deletions

5
debian/rules vendored
View File

@ -1,8 +1,11 @@
#!/usr/bin/make -f
CFLAGS := -g -O2 -fstack-protector-all -fPIE
LDFLAGS := -pie
build:
python setup.py -q build
cd src && make
cd src && make CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
clean:
dh_testdir

View File

@ -1,5 +1,7 @@
CFLAGS ?= -ggdb -Wall -O2
CFLAGS += -I../include
CFLAGS := -g3 -O2 -Wall -Werror -DDEBUG
INCLUDES := -I../include $(shell krb5-config --cflags)
override LDFLAGS += -std=gnu99 $(INCLUDES)
override CFLAGS += -std=gnu99 $(INCLUDES)
LIBCEO_OBJECTS := util.o common.o config.o parser.o ldap.o krb5.o kadm.o addhomedir.o
LIBCEO_LDFLAGS := -lldap $(shell krb5-config --libs krb5 kadm-client)