-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild_fpc.sh
executable file
·27 lines (23 loc) · 929 Bytes
/
build_fpc.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
# -Scgi - Support operators like C; Enable LABEL and GOTO(default for -MDelphi; Inlining
# -Cg PIC code - for Linux library only (slowed code for program)
# -Ci - IO checking
# -O2 - optimization level
# -g -gl -gw2 -Xg- Generate debug information; Use line info unit (show more info with backtraces); DWARFv2 debug info; debug info in separate file
# -k'-rpath=$ORIGIN' - link to a library in the same folder as program
# -veiq -vw-n-h - verbose(errors, info, message numbers) no warnings, no notes, no hints
# -B - build all
# -Se10 - halts after 10 error
TARGET=linux
ARCH=x86_64
rm -rf ./.dcu
mkdir -p ./.dcu/$ARCH-$TARGET
set -x
fpc -MDelphi -Sci -Ci -O3 -k'-rpath=$ORIGIN' -k-lstdc++ \
-veiq -vw-n-h- \
-Fi.dcu/$ARCH-$TARGET -Filib/Synopse \
-Fllib/Synopse/static/$ARCH-$TARGET \
-Fulib/Synopse \
-FU.dcu/$ARCH-$TARGET \
-dDOPATCHTRTL -dFPCUSEVERSIONINFO \
-B -Se1 ./utf8validate.lpr