I am using make (not hbmk2) to make my program, "jrm.prg". For harbour there are no options:
harbour jrm.prg
Harbour 3.2.0dev (r1612161005)
Copyright (c) 1999-2016,
http://harbour-project.org/The c compiler has these options:
gcc -m32 -Wall -I /usr/include/harbour -o jrm.o -c jrm.c
The linking of all the modules together has these options:
gcc -Wall jrm.o basfun01.o basfun02.o basfun03.o basfun04.o basfun05.o basfun06.o basfun07.o basfun08.o basfun09.o basfun10.o basfun11.o basfun12.o funcs.o -o jrm -m32 -L /usr/lib/harbour \
-Wl,--start-group -lhbvm -lhbrtl -lhblang -lhbrdd \
-lhbmacro -lhbpp -lhbcommon -lrddntx -lrddcdx -lrddfpt -lhbsix \
-lhbct -lgttrm -lhbcpage -Wl,--end-group -lgpm -lm