enca: fix cross build
Need this to get the cross-base library path out of the ldflags, so the host tools can build without attempting to link against bad libraries. This mostly applies when cross-compiling to "close" systems (like different libc, or different endianness).
This commit is contained in:
parent
8b8a1a15ee
commit
81c67216f4
1 changed files with 2 additions and 2 deletions
|
@ -10,15 +10,15 @@ hostmakedepends="pkg-config"
|
||||||
makedepends="recode-devel"
|
makedepends="recode-devel"
|
||||||
short_desc="Extremely Naive Charset Analyser and converter"
|
short_desc="Extremely Naive Charset Analyser and converter"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
||||||
homepage="http://cihar.com/software/enca/"
|
|
||||||
license="GPL-2"
|
license="GPL-2"
|
||||||
|
homepage="http://cihar.com/software/enca/"
|
||||||
distfiles="http://dl.cihar.com/enca/enca-${version}.tar.xz"
|
distfiles="http://dl.cihar.com/enca/enca-${version}.tar.xz"
|
||||||
checksum=3a487eca40b41021e2e4b7a6440b97d822e6532db5464471f572ecf77295e8b8
|
checksum=3a487eca40b41021e2e4b7a6440b97d822e6532db5464471f572ecf77295e8b8
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
# make_hash must be built for the host.
|
# make_hash must be built for the host.
|
||||||
cd tools
|
cd tools
|
||||||
make CC=cc CFLAGS="$BUILD_CFLAGS -fPIE"
|
make CC=cc LDFLAGS="" CFLAGS="$BUILD_CFLAGS -fPIE"
|
||||||
}
|
}
|
||||||
|
|
||||||
libenca_package() {
|
libenca_package() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue