[PD-dev] Using Shared libs in Externals
ydegoyon at free.fr
ydegoyon at free.fr
Thu Jun 27 20:03:13 CEST 2002
>
> LIBS = -lSDL -lm -lpthread
>
> .c.pd_linux:
> cc $(CFLAGS) $(LIBS) $(INCLUDE) -o $*.o -c $*.c
> ld -export_dynamic -shared -o $*.pd_linux $*.o -lc -lm
> strip --strip-unneeded $*.pd_linux
> rm $*.o
fasthack : : : :: :
the LIBS sould be on the linking stage like this :
> .c.pd_linux:
> cc $(CFLAGS) $(INCLUDE) -o $*.o -c $*.c
> ld -export_dynamic -shared -o $*.pd_linux $*.o -lc -lm $(LIBS)
> strip --strip-unneeded $*.pd_linux
> rm $*.o
cheers,
sevy/yves
More information about the Pd-dev
mailing list