From 74ce31a5c54e779ea40651eb3af0dc19897b5790 Mon Sep 17 00:00:00 2001 From: Jay Freeman Date: Sun, 27 Jan 2008 23:39:26 +0000 Subject: If possible, diskdev-cmds should have few external requirements (like /System). git-svn-id: http://svn.telesphoreo.org/trunk@40 514c082c-b64e-11dc-b46d-3d985efe055d --- data/diskdev-cmds/make.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'data/diskdev-cmds') 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 -- cgit v1.2.3