add -ffunction-sections to CFLAGS on hppa, fixes the build there.

ok sthen@ (maintainer)
This commit is contained in:
landry 2012-09-30 10:22:54 +00:00
parent 8eac2111e4
commit 7da62bc827

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.34 2012/09/12 21:32:19 sthen Exp $
# $OpenBSD: Makefile,v 1.35 2012/09/30 10:22:54 landry Exp $
COMMENT = graphic library, pdf parser, viewer and utilities
@ -33,6 +33,10 @@ LIB_DEPENDS = graphics/jbig2dec \
USE_GMAKE = Yes
NO_REGRESS = Yes
.if ${MACHINE_ARCH} == "hppa"
CFLAGS += -ffunction-sections
.endif
# -I flags prepend mupdf's own, to allow building with previous ver installed
MAKE_ENV += CFLAGS="${CFLAGS} -I$(WRKSRC)/fitz -I$(WRKSRC)/pdf -I$(WRKSRC)/xps" \
LDFLAGS="${LDFLAGS}" CC=${CC} CXX=${CXX} \