summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/diskdev-cmds/make.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/data/diskdev-cmds/make.sh b/data/diskdev-cmds/make.sh
index 96affc5d6..7f70ce9d9 100644
--- a/data/diskdev-cmds/make.sh
+++ b/data/diskdev-cmds/make.sh
@@ -11,7 +11,17 @@ cd ..
for tproj in !(fstyp|dev_mkdb|dump|fsck_hfs|fuser|mount_hfs|restore|quotacheck|ufs).tproj; do
tproj=$(basename "${tproj}" .tproj)
echo ${tproj}
- arm-apple-darwin-gcc -Idisklib -o "${tproj}" $(find "${tproj}.tproj" -name '*.c') disklib/libdisk.a -framework IOKit -framework CoreFoundation -lutil
+
+ extra=
+ if [[ ${tproj} = mount_cd9660 ]]; then
+ extra="${extra} -framework IOKit"
+ fi
+
+ if [[ ${tproj} = mount_cd9660 || ${tproj} = newfs_hfs ]]; then
+ extra="${extra} -framework CoreFoundation"
+ fi
+
+ arm-apple-darwin-gcc -Idisklib -o "${tproj}" $(find "${tproj}.tproj" -name '*.c') disklib/libdisk.a -lutil ${extra}
arm-apple-darwin-strip "${tproj}"
done