Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Aug 2012 05:35:04 GMT
From:      Makoto Kishimoto <ksmakoto@dd.iij4u.or.jp>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/170777: [PATCH] Not LIBS but LDFLAGS in Makefile of lang/ruby
Message-ID:  <201208200535.q7K5Z4Xl097671@red.freebsd.org>
Resent-Message-ID: <201208200540.q7K5e8s5068525@freefall.freebsd.org>

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

>Number:         170777
>Category:       ports
>Synopsis:       [PATCH] Not LIBS but LDFLAGS in Makefile of lang/ruby
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 20 05:40:08 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Makoto Kishimoto
>Release:        8.3-STABLE
>Organization:
private
>Environment:
FreeBSD norikura.localdomain 8.3-STABLE FreeBSD 8.3-STABLE #0 r235428: Wed May 16 18:32:03 JST 2012     ksmakoto@norikura.localdomain:/export/obj/usr/src/sys/NORIKURA20120516  amd64
>Description:
THis should use variable LDFLAGS, not LIBS. (some utility (example mkrf) cause trouble)

--- Makefile.ORG	2012-08-20 14:30:45.000000000 +0900
+++ Makefile	2012-08-07 16:44:05.000000000 +0900
@@ -77,7 +77,7 @@
 .endif
 
 CONFIGURE_ENV=	CFLAGS="-I${LOCALBASE}/include ${CFLAGS}" \
-		LDFLAGS="-L${LOCALBASE}/lib ${LDFLAGS}" \
+		LIBS="-L${LOCALBASE}/lib ${LDFLAGS}" \
 		debugflags=
 
 .if ${RUBY_VER} == ${RUBY_DEFAULT_VER}

>How-To-Repeat:
---
>Fix:
see patch

Patch attached with submission follows:

--- Makefile.ORG	2012-08-20 14:30:45.000000000 +0900
+++ Makefile	2012-08-07 16:44:05.000000000 +0900
@@ -77,7 +77,7 @@
 .endif
 
 CONFIGURE_ENV=	CFLAGS="-I${LOCALBASE}/include ${CFLAGS}" \
-		LDFLAGS="-L${LOCALBASE}/lib ${LDFLAGS}" \
+		LIBS="-L${LOCALBASE}/lib ${LDFLAGS}" \
 		debugflags=
 
 .if ${RUBY_VER} == ${RUBY_DEFAULT_VER}


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208200535.q7K5Z4Xl097671>