nawk: fix PIE.
This commit is contained in:
parent
8adccc6104
commit
dfb02a104a
1 changed files with 3 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'nawk'
|
||||
pkgname=nawk
|
||||
version=20121220
|
||||
revision=4
|
||||
revision=5
|
||||
create_wrksrc=yes
|
||||
hostmakedepends="bison"
|
||||
short_desc="The one, true implementation of AWK"
|
||||
|
@ -17,9 +17,10 @@ alternatives="
|
|||
awk:awk.1:/usr/share/man/man1/nawk.1"
|
||||
|
||||
do_configure() {
|
||||
sed -i '/maketab/s/CC/BUILD_CC/;s/CFLAGS/BUILD_CFLAGS/' makefile
|
||||
sed -i '/maketab/{s/CC/BUILD_CC/;s/CFLAGS/BUILD_CFLAGS/}' makefile
|
||||
sed -i '/YACC = yacc -d -S/ s|^|#|' makefile
|
||||
sed -n '/Copyright/,/THIS SOFTWARE\./p' README > LICENSE
|
||||
sed -i 's/-lm/$(LDFLAGS) &/' makefile
|
||||
}
|
||||
do_build() {
|
||||
make CC=$CC CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS -DHAS_ISBLANK" LDFLAGS="$LDFLAGS"
|
||||
|
|
Loading…
Add table
Reference in a new issue