Removing the following line from debian/rules let's me build Jessie source on Jessie that works when installed on Jessie:
CFLAGS += -O2