User Exit compiled with GCC

Hi,

I

Hi,

That’s me again. I find a way to compile the shared library with gcc.
I had to change the Makedyn file with the next lines:


CC	= [b]gcc[/b]
CFLAGS  = [b]-maix64[/b]
LD	= ld
LFLAGS1 = [b]-b64[/b] -G -bsymbolic -bexpall -bnoentry
LFLAGS2 = -ldl -L${SAG}/common/lib -blibpath:/usr/lib/threads:/usr/lib:/lib -lc_r -lC_r

I also changed the lib rule definition to:


lib :
        $(CC) $(CFLAGS) -c -O $(INCDIR) -DOS_UNIX=1 -DDYN_UEXIT=1 *.c
        $(LD) $(LFLAGS1) $(NATOBJ) $(USEROBJS) $(LFLAGS2) -o $(USERLIB)
        -rm -f *.o

With this changes I run: make -f Makedyn lib, and works. :lol: