summaryrefslogtreecommitdiffstats
path: root/main/lua-iconv
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2013-01-07 12:30:35 +0100
committerCarlo Landmeter <clandmeter@gmail.com>2013-01-07 12:30:35 +0100
commit5f072c16760f84bc5b30d0725236608d69e51678 (patch)
tree0eb3fd285466c652ff6604d4c6b725136546d948 /main/lua-iconv
parent066fa6bb386bf4b91c7d650518146d6ef8cf1896 (diff)
downloadaports-5f072c16760f84bc5b30d0725236608d69e51678.tar.bz2
aports-5f072c16760f84bc5b30d0725236608d69e51678.tar.xz
main/lua-iconv: fix build on eglibc
Diffstat (limited to 'main/lua-iconv')
-rw-r--r--main/lua-iconv/APKBUILD8
1 files changed, 6 insertions, 2 deletions
diff --git a/main/lua-iconv/APKBUILD b/main/lua-iconv/APKBUILD
index 75075904d..8ddbaa2a7 100644
--- a/main/lua-iconv/APKBUILD
+++ b/main/lua-iconv/APKBUILD
@@ -22,8 +22,12 @@ prepare() {
build() {
cd "$_builddir"
- make CFLAGS="$CFLAGS" LFLAGS="-llua -liconv -shared $LDFLAGS" \
- || return 1
+ if [ "$ALPINE_LIBC" = "eglibc" ]; then
+ LFLAGS="-llua -shared $LDFLAGS"
+ else
+ LFLAGS="-llua -liconv -shared $LDFLAGS"
+ fi
+ make CFLAGS="$CFLAGS" LFLAGS="$LFLAGS" || return 1
}
package() {