Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Aug 1998 20:08:55 +0200
From:      axl@iafrica.com
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/7685: ports/lang/perl5 ignores CFLAGS
Message-ID:  <E0z9CfH-00058g-00@axl.training.iafrica.com>

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

>Number:         7685
>Category:       ports
>Synopsis:       ports/lang/perl5 ignores CFLAGS
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 19 11:10:00 PDT 1998
>Last-Modified:
>Originator:     Sheldon Hearn
>Organization:
UUNET Internet Africa
>Release:        FreeBSD 2.2.7-STABLE i386
>Environment:

	When CFLAGS is defined in /etc/make.conf

>Description:

	The ports/lang/perl5 Configure script ignores CFLAGS in
	determining what optimization scheme to use. There is
	definitely no use in ignoring CFLAGS.

>How-To-Repeat:

	Watch a make build with CFLAGS defined in /etc/make.conf
	and notice that CFLAGS contents is ignored.

>Fix:
	
	The following patch teaches the ports/lang/perl5 port to
	honour CFLAGS.

diff -urN lang/perl5.ORIG/patches/patch-af lang/perl5/patches/patch-af
--- lang/perl5.ORIG/patches/patch-af	Thu Jan  1 02:00:00 1970
+++ lang/perl5/patches/patch-af	Mon Aug 17 12:03:45 1998
@@ -0,0 +1,11 @@
+--- Configure.ORIG	Fri Aug  7 23:38:53 1998
++++ Configure	Mon Aug 17 12:03:07 1998
+@@ -306,7 +306,7 @@
+ ldflags=''
+ lkflags=''
+ locincpth=''
+-optimize=''
++optimize=${CFLAGS:-''}
+ cf_email=''
+ cf_by=''
+ cf_time=''
>Audit-Trail:
>Unformatted:

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?E0z9CfH-00058g-00>