summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/darwin-arm/strip9
-rw-r--r--arch/iphoneos-arm/strip10
-rwxr-xr-xmake.sh14
3 files changed, 24 insertions, 9 deletions
diff --git a/arch/darwin-arm/strip b/arch/darwin-arm/strip
new file mode 100644
index 000000000..cc7b2ef85
--- /dev/null
+++ b/arch/darwin-arm/strip
@@ -0,0 +1,9 @@
+find "${PKG_DEST}" -type f \( -perm -0500 -o -name '*.dylib' \) -print0 | while read -r -d $'\0' bin; do
+ case "$(file "${bin}")" in (\
+ *': setuid Mach-O executable acorn' |\
+ *': Mach-O executable acorn' |\
+ *': Mach-O dynamically linked shared library acorn'\
+ );; (*) continue;; esac
+
+ "${PKG_TARG}-strip" -x -no_uuid "${bin}"
+done
diff --git a/arch/iphoneos-arm/strip b/arch/iphoneos-arm/strip
new file mode 100644
index 000000000..79482a7d9
--- /dev/null
+++ b/arch/iphoneos-arm/strip
@@ -0,0 +1,10 @@
+find "${PKG_DEST}" -type f \( -perm -0500 -o -name '*.dylib' \) -print0 | while read -r -d $'\0' bin; do
+ case "$(file "${bin}")" in (\
+ *': setuid Mach-O executable acorn' |\
+ *': Mach-O executable acorn' |\
+ *': Mach-O dynamically linked shared library acorn'\
+ );; (*) continue;; esac
+
+ CODESIGN_ALLOCATE=$(which arm-apple-darwin9-codesign_allocate) \
+ "${PKG_BASE}/util/ldid" -S "${bin}"
+done
diff --git a/make.sh b/make.sh
index 5a3f7329e..de061f078 100755
--- a/make.sh
+++ b/make.sh
@@ -14,7 +14,7 @@ export PKG_BASE=$(realpath "$(dirname "$0")")
. "${PKG_BASE}/helper.sh"
if [[ ! -x ${PKG_BASE}/util/ldid || ${PKG_BASE}/util/ldid -ot ${PKG_BASE}/util/ldid.cpp ]]; then
- g++ -I ~/menes -o "${PKG_BASE}"/util/ldid{,.cpp} -x c "${PKG_BASE}"/util/lookup2.c
+ g++ -I ~/menes -o "${PKG_BASE}"/util/ldid{,.cpp} -x c "${PKG_BASE}"/util/{lookup2,sha1}.c
fi
for DEP_NAME in "${PKG_DEPS[@]}"; do
@@ -104,6 +104,7 @@ export -f pkg:setup
function pkg:configure() {
PKG_CONFIG="$(realpath "${PKG_BASE}/util/pkg-config.sh")" \
+ ac_cv_prog_cc_g=no \
"${PKG_CONF}" \
--build=x86_64-unknown-linux-gnu \
--host="${PKG_TARG}" \
@@ -174,14 +175,9 @@ rmdir_ "${PKG_DEST}/usr/local"
rmdir_ "${PKG_DEST}/usr/lib"
rmdir_ "${PKG_DEST}/usr"
-find "${PKG_DEST}" -type f -perm -0500 -print0 | while read -r -d $'\0' bin; do
- case "$(file "${bin}")" in (\
- *': Mach-O executable acorn' |\
- *': Mach-O dynamically linked shared library acorn'\
- );; (*) continue;; esac
-
- "${PKG_TARG}-strip" -x -no_uuid "${bin}"
-done
+if [[ -e "${PKG_BASE}/arch/${PKG_ARCH}/strip" ]]; then
+ . "${PKG_BASE}/arch/${PKG_ARCH}/strip"
+fi
cp -a "${PKG_DATA}/_metadata/version" "${PKG_STAT}/data-ver"
echo "${PKG_HASH}" >"${PKG_STAT}/data-md5"