[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Avoiding useless library dependencies



* Nikolaus Rath <Nikolaus@rath.org>, 2011-05-22, 13:56:
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-x86_64-2.7/src/llfuse.o -o build/lib.linux-x86_64-2.7/llfuse.so --as-needed -pthread -lfuse -lrt -ld

You want to use "-Wl,--as-needed", not "--as-needed". ("--as-needed" is a linker option, not a compiler option.)

--
Jakub Wilk


Reply to: