Commit f9a9459f authored by Kan-Ru Chen's avatar Kan-Ru Chen

debian/rules: Build with Debian CFLAGS and enable PIC libmupdf.a

Closes: #841403
parent cdeee641
......@@ -17,16 +17,14 @@ include /usr/share/dpkg/architecture.mk
# missing (hardening) flags.
CFLAGS += $(CPPFLAGS)
CFLAGS += -DJBIG_NO_MEMENTO
CFLAGS += -fPIC
ifneq (,$(filter x-fpic,$(DEB_BUILD_OPTIONS)))
CFLAGS += -fPIC
endif
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
MAKEFLAGS += -j$(NUMJOBS)
endif
BUILD_FLAGS=build=release OS=Linux verbose=yes
BUILD_FLAGS=build=release OS=Linux verbose=yes XCFLAGS="$(CFLAGS)"
override_dh_auto_build:
$(MAKE) $(BUILD_FLAGS)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment