Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Jan 2002 19:43:47 +0100
From:      "Steve O'Hara-Smith" <steve@sohara.org>
To:        ports@freebsd.org
Cc:        andreas@freebsd.org
Subject:   ghostrscript_afpl 7.03_02 and hpijs
Message-ID:  <20020113194347.49a045af.steve@sohara.org>

next in thread | raw e-mail | index | archive | help
	Hi,

	The fix committed on 11/1/2001 for the hpijs core dump isn't
enough to prevent settings in /etc/make.conf ruining the day :( I had
the normal -O -pipe settings and hpijs was compiled that way. I modified
the perl in the Makefile to explicitly set CFLAGS="-O0" and CXXFLAGS="-O0"
in the post-patch target and now it works for me. Patch below


--- Makefile    11 Jan 2002 21:45:41 -0000      1.87
+++ Makefile    13 Jan 2002 18:34:22 -0000
@@ -170,8 +170,8 @@
        ${PERL} -pi -e 's|\. de|\.|g' \
                ${WRKSRC}/src/unixinst.mak
 # for HPinkjet driver
-       ${PERL} -pi -e 's|CFLAGS="-O2 -Wall"||g ; \
-                s|CXXFLAGS="-O2 -Wall"||g' ${WRKSRC}/${HPIJS_NAME}/configure
+       ${PERL} -pi -e 's|CFLAGS="-O2 -Wall"|CFLAGS="-O0"|g ; \
+                s|CXXFLAGS="-O2 -Wall"|CXXFLAGS="-O0"|g' ${WRKSRC}/${HPIJS_NAME}/configure
        find ${WRKSRC}/${HPIJS_NAME} -name '*.h' | xargs ${PERL} -pi -e \
                's|#include <malloc.h>||g'

-- 
C:>WIN                                          |     Directable Mirrors
The computer obeys and wins.                    |A Better Way To Focus The Sun
You lose and Bill collects.                     |  licenses available - see:
                                                |   http://www.sohara.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020113194347.49a045af.steve>