aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-11-26 15:46:56 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-11-26 15:46:56 +0000
commit6d35b581eba0ef2bf53d26f311d34a380783cc99 (patch)
treeafb79c20bec1f814d6019206611be56220c34931
parent178907e14f08218935d646a4722a5c7a20705525 (diff)
downloadaports-6d35b581eba0ef2bf53d26f311d34a380783cc99.tar.bz2
aports-6d35b581eba0ef2bf53d26f311d34a380783cc99.tar.xz
main/tolua++: add -fPIC
-rw-r--r--main/tolua++/APKBUILD7
1 files changed, 3 insertions, 4 deletions
diff --git a/main/tolua++/APKBUILD b/main/tolua++/APKBUILD
index 4fffbcce22..9f8bd7f5a3 100644
--- a/main/tolua++/APKBUILD
+++ b/main/tolua++/APKBUILD
@@ -1,8 +1,7 @@
-# Contributor:
-# Maintainer:
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=tolua++
pkgver=1.0.93
-pkgrel=0
+pkgrel=1
pkgdesc="a tool to integrate C/C++ code with Lua"
url="http://www.codenix.com/~tolua/"
license="MIT"
@@ -21,7 +20,7 @@ prepare() {
build() {
cd "$_builddir"/src
# see http://lua-users.org/wiki/CompilingToluappWithoutScons
- gcc -c lib/*.c -I../include
+ gcc -fPIC -c lib/*.c -I../include
ar rcsv libtolua++.a *.o
gcc bin/tolua.c bin/toluabind.c -I../include -L. -llua -ltolua++ \
-o tolua++