Hi Przemek,
> 1. no extension is used for -cmp option
> hbmk -hbcmp t.prg
> generates object file "t" instead of "t.o"
> 2. hbmk -hbcmp t.c
> the same problem as in pkt. 1
> 3. hbmk -hbcc t.c
> does not call C compiler
Both should be fixed.
> 4. automatic 1-st funtion detection does not work:
> echo "proc p;? 'hello'" > t.prg && hbmk2 -n -q2 t.prg && ./t
> Unrecoverable error 9012: Can't locate the starting procedure: 'MAIN'
Should be fixed now.
> 5. it still creates binaries which uses harbour static libraries in *nixes
LD_PATH or other "smart" autodetection as a TODO.
> 6. -fullstatic does not work. When this switch is used -static parameter
> should be passed to gcc. You cannot test it in MinGW because here
> such functionality does not exists and system libraries cannot be
> included.
Should work now.
> 7. The installation paths (LIB/INCLUDE) are not stripped:
> hbmk2 -n -q2 -shared t -trace
> hbmk: Harbour compiler command:
> /home/druzus/CVS/harbour/out/bin/../bin/harbour t \
> -i/home/druzus/CVS/harbour/out/bin/../include -n -q2
> hbmk: C compiler command:
> gcc t.c -O3 -ot -I/home/druzus/CVS/harbour/out/bin/../include \
> -L/home/druzus/CVS/harbour/out/bin/../lib -L/usr/X11R6/lib \
> -Wl,--start-group -lharbour -lhbcplr -lhbdebug -lm -ldl -lrt \
> -lncurses -lslang -lX11 -Wl,--end-group
This should be okay now.
I have system wide installation but probably hbmk2 was confused by
>
links I used. I've just emulated default system installation and
>
shared library is created but full path to harbour shared library
>
is hardcoded into final binaries:
>
druzus:/tmp/13# ldd t
>
linux-gate.so.1 => (0xffffe000)
>
/usr/lib/harbour/libharbour.so (0xb7d9a000)
>
It should be fixed. All such things will very badly interact with
>
customized installation or system settings, f.e. when user have
>
to use dchroot.
Still a TODO. Currently path won't be included if Harbour is installed
on a system location, and it will otherwise.
Brgds,
Viktor
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour