Hi,
I am trying to run nvcc compiler driver through libtool, and I keep
getting errors about compiler flags which are not supported by nvcc:
pa...@solea:~/sandbox/libdesc/libdesc/trunk$ /opt/local/bin/glibtool
--mode=compile --tag=CC nvcc -c -m64 -arch=sm_11 -g -DTIMER -Xcompiler
-fno-common -I/usr/local/cuda/include/ -o cliques_cuda_int.lo
cliques_cuda_int.cu
glibtool: compile: nvcc -c -m64 -arch=sm_11 -g -fno-common -DTIMER
-I/usr/local/cuda/include/ cliques_cuda_int.cu -fno-common -DPIC -o
.libs/cliques_cuda_int.o
nvcc fatal : Unknown option 'fno-common'
This is understandable because -fno-common should be prepended with
-Xcompiler in nvcc call. One would expect that libtool should do it
automagically, since it has some kind of CUDA support built in.
What am I doing wrong? Is there any method to override regular libtool
behavior to put -Xcompiler before flags it adds?
I'm using libtool 2.4 from MacPorts on Mac OS 10.6.5.
Any suggestions will be appreciated.
Thanks,
Paweł
_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool