Re: right way to add a library to src/

2020-02-07 Thread Mihir Luthra
> Without taking a closer look, I think there is only one other file that is > shared between darwintrace and pextlib. Unfortunately, there is no good > solution > to this in the current structure. What it currently does is to copy the > *.c file > around during compilation, but I think this is a r

Re: right way to add a library to src/

2020-01-22 Thread Rainer Müller
On 16/01/2020 13.20, Mihir Luthra wrote: > I was trying to add some code to a new directory in macports-base/src/ dir > such > that I can use it in both porttrace.tcl(as a tcl cmd) and darwintrace.c. > > Basically it is a library that needs to be dynamically generated(because it > uses > `__attr

right way to add a library to src/

2020-01-16 Thread Mihir Luthra
Hi, I was trying to add some code to a new directory in macports-base/src/ dir such that I can use it in both porttrace.tcl(as a tcl cmd) and darwintrace.c. Basically it is a library that needs to be dynamically generated(because it uses `__attribute__((constructor))`) I see 2 choices: 1) To ge