1
我編譯了glibc
,結果產生了libc.a
。我怎樣才能在makefile中鏈接這個。 makefile目前看起來像這樣。如何鏈接你的makefile中的靜態glibc
CXX = g++
CXXFILES = file1.cpp file2.cpp file3.cpp
CXXFLAGS = -O3 -o prog -D_GNU_SOURCE
LIBS = -lpthread
all:
$(CXX) $(CXXFILES) $(LIBS) $(CXXFLAGS)
clean:
rm -f prog *.o