-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcomp.sh
More file actions
19 lines (15 loc) · 754 Bytes
/
comp.sh
File metadata and controls
19 lines (15 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
rm ServerCrashFix_v11.o
rm ServerCrashFix_v11.so
rm ../System/ServerCrashFix_v11.so
# compile and output to this folder -> no linking yet!
gcc-2.95 -c -D__LINUX_X86__ -O2 -fomit-frame-pointer -march=pentium -D_REENTRANT -fPIC \
-DGPackage=ServerCrashFix_v11 -Werror -I../ServerCrashFix_v11/Inc -I../Core/Inc -I../Engine/Inc \
-o../ServerCrashFix_v11/ServerCrashFix_v11.o ../ServerCrashFix_v11/Src/ServerCrashFix_v11.cpp
# link with UT libs
# -Wl,-rpath,. -shared
# -lm -ldl -lnsl -lpthread
gcc-2.95 -shared -o ServerCrashFix_v11.so -Wl,-rpath,. \
-export-dynamic -Wl,-soname,ServerCrashFix_v11.so \
-lm -lc -ldl -lnsl -lpthread ../ServerCrashFix_v11/ServerCrashFix_v11.o \
../System/Core.so ../System/Engine.so
cp ServerCrashFix_v11.so ../System/