ports/56113: ports/Mk/bsd.openssl.mk has linker options in CFLAGS
Oliver Eikemeier
eikemeier at fillmore-labs.com
Fri Aug 29 02:00:28 UTC 2003
>Number: 56113
>Category: ports
>Synopsis: ports/Mk/bsd.openssl.mk has linker options in CFLAGS
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Aug 28 19:00:25 PDT 2003
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list