diff options
author | Jay Freeman <saurik@saurik.com> | 2008-01-27 23:39:26 +0000 |
---|---|---|
committer | Jay Freeman <saurik@saurik.com> | 2008-01-27 23:39:26 +0000 |
commit | 74ce31a5c54e779ea40651eb3af0dc19897b5790 (patch) | |
tree | 3e2e898b74d19334e8994a2bf9bc50d94ff86178 /data/diskdev-cmds/make.sh | |
parent | 86b51bcf2fa1705d1f7b46a7bb6451e546b96ed4 (diff) |
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
Diffstat (limited to 'data/diskdev-cmds/make.sh')
-rw-r--r-- | data/diskdev-cmds/make.sh | 12 |
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 |