pkgsrc/converters/pstotext/hacks.mk
obache db0c27f566 Import pstotext-1.9 as converters/pstotext.
Packaged by Stefan Schaeckeler in pkgsrc-wip.

Pstotext extracts plain-text from postscript files (and somewhat less
reliable from pdf files).
2010-04-25 12:46:19 +00:00

20 lines
655 B
Makefile

# $NetBSD: hacks.mk,v 1.1.1.1 2010/04/25 12:46:19 obache Exp $
.if !defined(PSTOTEXT_HACKS_MK)
PSTOTEXT_HACKS_MK= defined
.include "../../mk/compiler.mk"
###
### With debian's security patch patch-ab, pstotext miscompiles under several
### versions of gcc-4.x when -O2 is used. It compiles fine with the
### -fno-strict-aliasing option.
### For the time being, pstotext will be compiled with -fno-strict-aliasing
### on any platform when gcc-4 is used independent of the compiler options.
###
.if !empty(CC_VERSION:Mgcc-4.*)
PKG_HACKS+= optimisation
CFLAGS+= -fno-strict-aliasing # must come at the end of CFLAGs.
.endif
.endif # PSTOTEXT_HACKS_MK