Date: Mon, 16 Sep 2002 16:56:56 +0100 From: Thomas Hurst <freaky@aagh.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/42843: www/links needs LDFLAGS/CPPFLAGS setting for LOCALBASE cleanliness Message-ID: <E17qyF6-000BGN-00@voi.aagh.net>
next in thread | raw e-mail | index | archive | help
>Number: 42843 >Category: ports >Synopsis: www/links needs LDFLAGS/CPPFLAGS setting for LOCALBASE cleanliness >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Sep 16 09:00:11 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Thomas Hurst >Release: FreeBSD 4.6-STABLE i386 >Organization: None >Environment: System: FreeBSD voi.freak.lan 4.6-STABLE FreeBSD 4.6-STABLE #0: Thu Aug 1 14:48:39 BST 2002 root@voi.freak.lan:/usr/obj/usr/src/sys/VOI i386 >Description: www/links configure has a hardcoded check for /usr/local added to LD/CPPFLAGS. This is fine for most systems, but with a modified LOCALBASE it obviously doesn't work, since bsd.ports.mk and friends do not set it beforehand. >How-To-Repeat: Install some libs it needs to LOCALBASE!=/usr/local, try to compile. >Fix: This quickfix allows it to compile properly: --- Makefile~ Sat Aug 31 13:58:08 2002 +++ Makefile Mon Sep 16 16:46:42 2002 @@ -27,6 +27,7 @@ jpeg.9:${PORTSDIR}/graphics/jpeg \ tiff.4:${PORTSDIR}/graphics/tiff USE_XLIB= yes +CONFIGURE_ENV+= CPPFLAGS='-I${LOCALBASE}/include' LDFLAGS='-L${LOCALBASE}/lib' CONFIGURE_ARGS+= --enable-graphics --with-x .endif A better fix may be to set them in bsd.ports.mk, ala NetBSD bsd.pkg.mk. >Release-Note: >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?E17qyF6-000BGN-00>