repo.or.cz
/
INIT.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
INIT.2014-12-24
[INIT.git]
/
src
/
cmd
/
INIT
/
cc.ibm.risc.gcc
blob
ac8473f55f277a92119ea6bc0c41b2cdf0fffe06
1
: cc wrapper for aix risc gcc : 2012-04-17 :
2
3
hosttype=ibm.risc
4
5
case $HOSTTYPE in
6
$hosttype-64)
7
case " $* " in
8
*" -maix64 "*) ;;
9
*) set -- -maix64 "$@" ;;
10
esac
11
;;
12
*) case " $* " in
13
*" -maix64 "*) HOSTTYPE=$hosttype-64 ;;
14
*) HOSTTYPE=$hosttype ;;
15
esac
16
;;
17
esac
18
19
case " $* " in
20
*" -dumpmachine "*)
21
echo $HOSTTYPE
22
exit
23
;;
24
esac
25
26
cc=gcc
27
ccflags=
28
29
case " $@ " in
30
*" -shared "*)
31
ccflags="$ccflags -shared -Wl,-G -Wl,-berok"
32
;;
33
*) ccflags="-Wl,-brtl"
34
;;
35
esac
36
$cc $ccflags "$@"