summaryrefslogtreecommitdiff
path: root/make.sh
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2015-10-14 12:53:09 +0000
committerJay Freeman <saurik@saurik.com>2015-10-14 12:53:09 +0000
commit30d381412a835d9e5eeadf187a9c4ec7fe733b4c (patch)
tree17c97c6254aedaa6d774f8a8d2ba5a9ed9b5dfe7 /make.sh
parent4b1aacd5d7f21c48567b4a4b7afcf0bf6fc1ab61 (diff)
We really need to compile ncurses with -marm.
git-svn-id: http://svn.telesphoreo.org/trunk@812 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'make.sh')
-rwxr-xr-xmake.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/make.sh b/make.sh
index 50d251b6e..914bc278b 100755
--- a/make.sh
+++ b/make.sh
@@ -103,6 +103,7 @@ function pkg:autoconf() {
export -f pkg:autoconf
export PKG_CONF=./configure
+export PKG_MCPU=-mthumb
function pkg:libtool_() {
for ltmain in $(find -name "$1"); do
@@ -129,7 +130,8 @@ function pkg:configure() {
--enable-shared=yes \
--prefix=$(cat "${PKG_BASE}/arch/${PKG_ARCH}/prefix") \
--localstatedir="/var/cache/${PKG_NAME}" \
- CFLAGS='-O2 -mthumb -fno-common' \
+ CFLAGS="-O2 ${PKG_MCPU} -fno-common" \
+ CXXFLAGS="-O2 ${PKG_MCPU} -fno-common" \
"$@")
echo "${cfg[@]}"
PKG_CONFIG="$(realpath "${PKG_BASE}/util/pkg-config.sh")" \
@@ -139,7 +141,7 @@ function pkg:configure() {
export -f pkg:configure
function pkg:make() {
- make CC="${PKG_TARG}-gcc" AR="${PKG_TARG}-ar" CXXFLAGS='-O2 -mthumb' "$@"
+ make CC="${PKG_TARG}-gcc" CXX="${PKG_TARG}-g++" AR="${PKG_TARG}-ar" "$@"
}
export -f pkg:make