i wrote a library (*.cu) from which i’d like to build a dynamic library. I use autotools for that.
In the Makefile.am i added rules:
(NVCC) -o @ -c < (NVCCFLAGS)
(LIBTOOL) --tag=CC --mode=compile (NVCC) -o @ -c < $(NVCCFLAGS)
When building a dynamic library there is the problem that $(LIBTOOL) calls CC with the parameter -fPIC, which “nvcc” does not understand.
Can anybody give me a hint on how to proceed from here?
Is there a way to tell libtool to NOT use -fPIC ?
Thanks for any hints,