From eikemeier@fillmore-labs.com  Thu Aug 28 18:56:40 2003
Return-Path: <eikemeier@fillmore-labs.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id 7040A16A4BF; Thu, 28 Aug 2003 18:56:40 -0700 (PDT)
Received: from mx2.fillmore-labs.com (lima.fillmore-labs.com [62.138.193.83])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id 9B06343F3F; Thu, 28 Aug 2003 18:56:39 -0700 (PDT)
	(envelope-from eikemeier@fillmore-labs.com)
Received: from p5080b7aa.dip.t-dialin.net
	([80.128.183.170] helo=fillmore-labs.com ident=chi18rhqtlz57lte)
	by mx2.fillmore-labs.com with asmtp (TLSv1:AES256-SHA:256)
	(Exim 4.22)
	id 19sYVC-0005A0-DY; Fri, 29 Aug 2003 03:56:38 +0200
Message-Id: <3F4EB2D4.9050405@fillmore-labs.com>
Date: Fri, 29 Aug 2003 03:56:36 +0200
From: Oliver Eikemeier <eikemeier@fillmore-labs.com>
To: FreeBSD-gnats-submit@FreeBSD.org
Cc: Dirk Meyer <dinoex@FreeBSD.org>
Subject: ports/Mk/bsd.openssl.mk has linker options in CFLAGS

>Number:         56113
>Category:       ports
>Synopsis:       ports/Mk/bsd.openssl.mk has linker options in CFLAGS
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    dinoex
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 28 19:00:25 PDT 2003
>Closed-Date:    Sat Aug 30 10:01:42 CEST 2003
>Last-Modified:  Sat Aug 30 10:01:42 CEST 2003
>Originator:     Oliver Eikemeier
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
Fillmore Labs - http://www.fillmore-labs.com
>Environment:
System: FreeBSD nuuk.fillmore-labs.com 4.8-STABLE

>Description:

When a port defines USE_OPENSSL, it gets
  CFLAGS+=		-Wl,-rpath,/usr/lib:${LOCALBASE}/lib
or
  CFLAGS+=		-Wl,-rpath,${LOCALBASE}/lib
(introduced in revision 1.4: http://www.freebsd.org/cgi/cvsweb.cgi/ports/Mk/bsd.openssl.mk.diff?r1=1.3&r2=1.4)


If this port just compiles *.c to *.o files and links them later,
the compiler emits two warning lines for every file compiled:
  cc: -rpath: linker input file unused since linking not done
  cc: /usr/lib:/usr/local/lib: linker input file unused since linking not done

This makes it hard to see other warnings that may be important.

>How-To-Repeat:

Compile a port that defines USE_OPENSSL, i.e. port mail/ssmtp.

>Fix:

Maybe the line can be simply removed or moved to LDFLAGS.


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->portmgr  
Responsible-Changed-By: krion 
Responsible-Changed-When: Fri Aug 29 03:56:09 PDT 2003 
Responsible-Changed-Why:  
portmgr territory 

http://www.freebsd.org/cgi/query-pr.cgi?pr=56113 
Responsible-Changed-From-To: portmgr->dinoex 
Responsible-Changed-By: marcus 
Responsible-Changed-When: Fri Aug 29 05:58:23 PDT 2003 
Responsible-Changed-Why:  
Actually, dinoex, needs to look this over. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=56113 
State-Changed-From-To: open->analyzed 
State-Changed-By: dinoex 
State-Changed-When: Fri Aug 29 15:52:10 CEST 2003 
State-Changed-Why:  

unfortunately from the 500 ports depends more then 100  
on the presence of this option to work as expected. 

I will make an extra option to supppress or add these. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=56113 
State-Changed-From-To: analyzed->closed 
State-Changed-By: dinoex 
State-Changed-When: Sat Aug 30 10:01:06 CEST 2003 
State-Changed-Why:  
changes have been committed. 

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