Hi Przemek,

>> Very nice, count me to those who are eagerly awaiting it.
>> (even if in not yet fully cooked state)
> 
> Thank you.
> There are some things which should be added/modified in hbmk2.
> First is support for .def files.
> This is .def file I used to link inproc OLE server DLL:
> 
>   EXPORTS
>   DllCanUnloadNow      PRIVATE
>   DllGetClassObject    PRIVATE
>   DllUnregisterServer
>   DllRegisterServer
>   DllMain
> 
> HBMK2 does not support .DEF files and I had to pass it using -dflag
> parameter:
>   -dflag=olesrv.def
> but I discovered that HBMK2 ignores parameters specified with
> *flags=<params> if <params> does not start with "-" so I have to
> hack above -dflag parameter to:
>   -dflag="-W olesrv.def"
> Can you recognize .def files and pass them directly to linker?
> Why HBMK2 ignore -*flag=<params> if params does not start with "-"
> character? Can you eliminate this restruction?

No problem to add support for .def files. I never had 
to use them so far, so maybe it will need a few iterations 
to get right.

As for flag option, I'd prefer to make the filtering, 
otherwise it's very easy to deeply mess up some command 
lines, and can make hbmk2 fall out of control of things.

The general concept is that hbmk2 deals with assembling 
the major components of the cmdline and user user is 
given a chance to supply additional flags only. Hence the 
name "-?flag=" and "?flags=" of these options.

> The next thing is building DLL and passing some link time parameters
> which are used with standalone EXE files. It would be nice if we can
> have an option to enable support for -gt and similar switches when
> -hbdyn option is used, i.e. this option can be extended to -hbdyn[vm]
> and -hbdynvm will enable support for startup options specified in .c
> temporary file used for normal executable files and also harbour
> core libraries in inked library list. If only -hbdyn is used then
> Harbour libraries should nor be linked by default. Do you think it
> possible to add it?

It seems fine to me. Same applies as above, I'm in 
the dark about OLE servers, so I'll either ask, or 
pls tell me what's specifically missing/needed.

So far I understand -hbdynvm would disable -nohblib 
option. Can you help finding out, what's the best 1
description for -hbdynvm mode? -hbdyn is 
"create dynamic library". Maybe "create dynamic 
library with Harbour VM"?

Viktor

_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to