linux 如何优先链接静态库标准路径下既有静态库又有动态库,LDFLAGS如何写才会使用静态库? [解决办法]-static 静态链接[解决办法]gcc -o main main.c -Wl,-static -lsqlite3