From andrew@ugh.net.au  Thu Dec  7 20:37:50 2000
Return-Path: <andrew@ugh.net.au>
Received: from starbug.ugh.net.au (starbug.ugh.net.au [203.31.238.37])
	by hub.freebsd.org (Postfix) with ESMTP id 9D15437B400
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  7 Dec 2000 20:37:49 -0800 (PST)
Received: by starbug.ugh.net.au (Postfix, from userid 1000)
	id 31597A85E; Fri,  8 Dec 2000 15:37:29 +1100 (EST)
Message-Id: <20001208043729.31597A85E@starbug.ugh.net.au>
Date: Fri,  8 Dec 2000 15:37:29 +1100 (EST)
From: andrew@ugh.net.au
Reply-To: andrew@ugh.net.au
To: FreeBSD-gnats-submit@freebsd.org
Subject: fix static building of gpart port (maintainer update)
X-Send-Pr-Version: 3.2

>Number:         23370
>Category:       ports
>Synopsis:       fix static building of gpart port (maintainer update)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 07 20:40:00 PST 2000
>Closed-Date:    Fri Dec 8 07:02:59 PST 2000
>Last-Modified:  Fri Dec 08 07:03:14 PST 2000
>Originator:     Andrew
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
UgH!
>Environment:

	

>Description:

The gpart port failed to build a statically linked executable when WANT_STATIC
was defined. HIYAMA Takeshi <th@cis.ibaraki.ac.jp> brought this to my attention
and provided a patch. This is a slightly different patch for the same problem.

>How-To-Repeat:

cd /usr/ports/sysutils/gpart && make -DWANT_STATIC

>Fix:


diff -ruN gpart.orig/Makefile gpart/Makefile
--- gpart.orig/Makefile	Mon Sep 18 00:16:56 2000
+++ gpart/Makefile	Fri Dec  8 14:27:07 2000
@@ -18,7 +18,7 @@
 MAN8=		gpart.8
 
 .if defined(WANT_STATIC)
-LDFLAGS=	-static
+MAKE_ARGS+= LDFLAGS=-static
 .endif
 
 .include <bsd.port.mk>

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: kevlo 
State-Changed-When: Fri Dec 8 07:02:59 PST 2000 
State-Changed-Why:  
Committed, thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=23370 
>Unformatted:
