FS#22284 - [ed] PKGBUILD doesn't honour CFLAGS and LDFLAGS

Attached to Project: Arch Linux
Opened by Emil Renner Berthing (Esmil) - Monday, 03 January 2011, 13:54 GMT
Last edited by Andreas Radke (AndyRTR) - Sunday, 30 January 2011, 11:06 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Andreas Radke (AndyRTR)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
ed uses a custom configure script which doesn't honour the CFLAGS and LDFLAGS environment variables.
The following small change makes it do so:

diff --git a/PKGBUILD b/PKGBUILD
index 76cc0ea..2a681a4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,7 +16,9 @@ md5sums=('e66c03d7e4c67b025d5b6093ec678267')

build() {
cd ${srcdir}/${pkgname}-${pkgver}
- ./configure --prefix=/ --mandir=/usr/share/man --infodir=/usr/share/info
+ ./configure --prefix=/ \
+ --mandir=/usr/share/man --infodir=/usr/share/info \
+ CFLAGS="$CFLAGS -Wall -W" LDFLAGS="$LDFLAGS"
make || return 1
}

Additional info:
I looked at the 1.5-1 version of the PKGBUILD.


Steps to reproduce:
Compile ed with custom CFLAGS or LDFLAGS set in your /etc/makepkg.conf
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Sunday, 30 January 2011, 11:06 GMT
Reason for closing:  Fixed

Loading...