File tree 2 files changed +13
-5
lines changed
2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 5
5
#
6
6
# Override to force -m32 if autodetection fails
7
7
ABI_FLAG=
8
+
9
+ # Adds to the ABI flags -no-pie if gcc is >= 5.0.0
10
+ currentver=" $( gcc -dumpversion) "
11
+ requiredver=" 5.0.0"
12
+ if [ " $( printf ' %s\n' " $requiredver " " $currentver " | sort -V | head -n1) " = " $requiredver " ]; then
13
+ ABI_FLAG=" $ABI_FLAG -fno-pie -no-pie"
14
+ fi
15
+
8
16
CPU=$( uname -m)
9
17
OS=$( uname)
10
18
# echo "OS = $OS"
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
3
WEBSEMESTER=2019sp
4
- XIRT=pa5-release .zip
4
+ XIRT=runtime .zip
5
5
6
6
cd $( dirname $0 ) /..
7
- wget -nv -N http://www.cs.cornell.edu/courses/cs4120/$WEBSEMESTER /pa/pa5 /$XIRT
8
- unzip -q $XIRT " pa5_student/runtime/* " -d runtime
7
+ wget -nv -N http://www.cs.cornell.edu/courses/cs4120/$WEBSEMESTER /project /$XIRT
8
+ unzip -q $XIRT -d runtime
9
9
rm $XIRT
10
10
cd runtime
11
- cp -frp pa5_student/runtime /* .
12
- rm -rf pa5_student
11
+ cp -frp release /* .
12
+ rm -rf release
13
13
make
You can’t perform that action at this time.
0 commit comments